Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests #57

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
d89da7f
Add initial tests
techalchemy Sep 17, 2018
901faf9
Clean up options and add virtualenv module
techalchemy Sep 18, 2018
89325f5
Add tests (clean is still failing)
techalchemy Sep 18, 2018
fec65fc
Wheel installation into virtualenv works
techalchemy Sep 18, 2018
da3afc6
Update setup.cfg
techalchemy Sep 18, 2018
258d51e
Implement working versions of clean and install inside virtualenvs
techalchemy Sep 19, 2018
9262a4d
Fix cleaning working set and messaging
techalchemy Sep 20, 2018
575b6d7
Fix tests
techalchemy Sep 27, 2018
2eedd3c
Update tox and add mork, installer and virtualenv dependencies
techalchemy Sep 27, 2018
f707d55
Swap to mork implementation for testing
techalchemy Sep 28, 2018
d7f6a11
Update CI configs
techalchemy Sep 30, 2018
8f56a89
Add deprecation warning ignores to test runners
techalchemy Sep 30, 2018
6aa3316
Add project fixtures, venv support
techalchemy Sep 30, 2018
e49eaeb
Add clean, install and lock tests
techalchemy Sep 30, 2018
0863400
Add sync and remove tests
techalchemy Sep 30, 2018
0c0b974
Monkeypatch distlib metadata to work with version 2.1
techalchemy Oct 1, 2018
ecd20ff
Update lockfile
techalchemy Oct 1, 2018
cc5eddd
Update pipfile and lockfile
techalchemy Oct 1, 2018
c4b90ce
Fix packing
techalchemy Oct 2, 2018
4b6cb33
Add general environment construct
techalchemy Oct 9, 2018
2c85a5d
Fix environment creation
techalchemy Oct 9, 2018
b50e59f
Update missing import
techalchemy Oct 9, 2018
69a8e7c
Store project on synchronizer
techalchemy Oct 9, 2018
6a8d24e
update environment model
techalchemy Dec 12, 2018
af52589
Merge branch 'master' into add-tests
techalchemy Dec 12, 2018
038621f
Add session closures, fix a bunch of test failures
techalchemy Dec 12, 2018
3ed2038
remove extra kwarg
techalchemy Dec 12, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
114 changes: 107 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,114 @@
.env
.venv
__pycache__

/build
/dist
/docs/_build
/pack
htmlcov/
.pytest_cache/
.vscode/

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

*.egg-info
# Distribution / packaging
.Python
develop-eggs/
downloads/
eggs/
.eggs/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

*.py[co]
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/
.vscode/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json
11 changes: 5 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ matrix:
fast_finish: true

install:
- "python -m pip install --upgrade pip pytest-timeout"
- "python -m pip install --upgrade -e .[tests]"
- "python -m pip install --upgrade pip setuptools pytest-timeout"
- "python -m pip install --upgrade -e .[tests,virtualenv]"
script:
- "python -m pytest -v -n 8 tests/"

Expand All @@ -24,7 +24,7 @@ jobs:
- stage: packaging
python: "3.6"
install:
- "python -m pip install --upgrade pip"
- "python -m pip install --upgrade pip setuptools"
- "python -m pip install --upgrade check-manifest readme-renderer"
script:
- "python setup.py check -m -r -s"
Expand All @@ -38,8 +38,7 @@ jobs:
- stage: coverage
python: "3.6"
install:
- "python -m pip install --upgrade pip"
- "python -m pip install --upgrade -e .[tests]"
- "python -m pip install --upgrade pytest-timeout pytest-xdist pytest-cov"
- "python -m pip install --upgrade pip setuptools pytest-timeout pytest-cov pytest-xdist"
- "python -m pip install --upgrade -e .[tests,virtualenv]"
script:
- "pytest -n auto --timeout 300 --cov=passa --cov-report=term-missing --cov-report=xml --cov-report=html tests"
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[packages]
passa = { editable = true, path = '.' }
passa = { editable = true, path = '.', extras = ['virtualenv'] }

[dev-packages]
black = '*'
Expand Down
Loading