Skip to content

Commit

Permalink
switch from nose to pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
cognifloyd committed Oct 21, 2024
1 parent 0c0174c commit ef8c891
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ unit-tests: requirements .clone_st2_repo .unit-tests
echo "==========================================================="; \
echo "Running unit tests"; \
echo "==========================================================="; \
. $(VIRTUALENV_DIR)/bin/activate; nosetests $(NOSE_OPTS) -s -v tests/unit || exit 1; \
. $(VIRTUALENV_DIR)/bin/activate; pytest tests/unit || exit 1; \

.PHONY: .clone_st2_repo
.clone_st2_repo:
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
include_package_data=True,
install_requires=install_reqs,
dependency_links=dep_links,
test_suite='tests',
entry_points={
'st2auth.backends.backend': [
'ldap = st2auth_ldap.ldap_backend:LDAPAuthenticationBackend',
Expand Down
2 changes: 1 addition & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
coverage
flake8==7.0.0
mock==5.1.0
nose>=1.3.7
pylint~=3.1.0
pylint-plugin-utils>=0.4
pytest
st2-auth-backend-flat-file
st2flake8
tox
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ envlist = py38,py39,py310,py311,lint
[testenv]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = nosetests -sv tests/unit
commands = pytest tests/unit

[testenv:lint]
commands = flake8 --config ./lint-configs/python/.flake8 st2auth_ldap/
Expand Down

0 comments on commit ef8c891

Please sign in to comment.