Skip to content

Commit

Permalink
Remove redundant unit test commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Deezzir committed Sep 11, 2024
1 parent 5d5047b commit 5be4161
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
7 changes: 1 addition & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ help:
@echo " make build - build the snap"
@echo " make lint - run lint checkers"
@echo " make reformat - run lint tools to auto format code"
@echo " make unittests - run the tests defined in the unittest subdirectory"
@echo " make functional - run the tests defined in the functional subdirectory"
@echo " make test - run lint, proof, unittests and functional targets"
@echo ""
Expand All @@ -25,10 +24,6 @@ lint:
@echo "Running lint checks"
@tox -e lint

unittests:
@echo "Running unit tests"
@tox -e unit -- ${UNIT_ARGS}

test: lint unittests functional
@echo "Tests completed for the snap."

Expand All @@ -52,4 +47,4 @@ functional: build
@TEST_SNAP=${SNAP_FILE} tox -e func -- ${FUNC_ARGS}

# The targets below don't depend on a file
.PHONY: help clean build lint reformat unittests functional test
.PHONY: help clean build lint reformat unittests functional test
4 changes: 1 addition & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,10 @@ commands =
black .
isort .

[testenv:unit]

[testenv:func]
deps =
pytest
passenv =
TEST_*
commands =
pytest {toxinidir}/tests/functional {posargs:-v}
pytest {toxinidir}/tests/functional {posargs:-v}

0 comments on commit 5be4161

Please sign in to comment.