Skip to content

Commit

Permalink
Replace nose with pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
lra committed Jan 15, 2024
1 parent 31ae717 commit b2767d8
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 611 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ lint:

test:
poetry install --with dev
poetry run nosetests --with-coverage --cover-branches --cover-package=mackup
poetry run pytest

clean:
rm -rf __pycache__
Expand Down
23 changes: 7 additions & 16 deletions doc/develop.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,17 @@
# Install a recent non-system python
brew install python

# Install pyenv to be able to easily switch Python versions
brew install pyenv
# Install pipx to be able to easily run isolated Python packages
brew install pipx

# Install the package and virtualenv manager
brew install pipenv

# Install the most recent Python
pyenv install 3.7.4
# Install the tool for dependency management and packaging in Python
pipx install poetry

# Setup local dev
cd .../mackup
pyenv local 3.7.4
pipenv install
pipenv shell
make develop
poetry install --with dev

# You can now edit files and see the impact of your changes
mackup --version
nosetests

# Cleanup
make undevelop
poetry run mackup --version
make test
```
630 changes: 37 additions & 593 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ docopt = "^0.6.2"
optional = true

[tool.poetry.group.dev.dependencies]
nose-py3 = "^1.6.3"
pytest = "^7.4.4"

[build-system]
requires = ["poetry-core"]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b2767d8

Please sign in to comment.