You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry for writing this issue here, but pytest-ckan doesn't take issues.
CKAN version: 2.97
Describe the bug
I am writing an extension. For some base functionalities I can write ckan-independant tests. I skip a few tests, as they're not as "robust". In order to be able to choose running them anyways I implemented a cli hook. When I only had pytest installed everything worked fine. Now I ran the installation of pytest-ckan. Since I did that:
my implemented command for the cli dont work
I need to provide a ckan test.ini, otherwise pytest doesnt run at all
How can I run tests, that are marked to be skipped?
Steps to reproduce
an example test:
importpytest@pytest.mark.skip(reason="Hardcoded Eawag user name!")deftest_generate_staff_profile_url(request_code):
assert200==200
Expected behavior
What I expect is that I am not forced to pass a ckan.ini if my tests don't require it and that if I do my added cli commands work.
Additional details
pytest --version
This is pytest version 4.6.5, imported from /usr/lib/ckan/default/lib/python3.9/site-packages/pytest.py
setuptools registered plugins:
pyfakefs-3.2 at /usr/lib/ckan/default/lib/python3.9/site-packages/pyfakefs/pytest_plugin.py
Faker-15.3.3 at /usr/lib/ckan/default/lib/python3.9/site-packages/faker/contrib/pytest/plugin.py
pytest-split-tests-1.0.9 at /usr/lib/ckan/default/lib/python3.9/site-packages/pytest_split_tests/__init__.py
pytest-cov-2.7.1 at /usr/lib/ckan/default/lib/python3.9/site-packages/pytest_cov/plugin.py
pytest-freezegun-0.4.1 at /usr/lib/ckan/default/lib/python3.9/site-packages/pytest_freezegun.py
pytest-ckan-0.0.12 at /usr/lib/ckan/default/lib/python3.9/site-packages/pytest_ckan/__init__.py
pytest-rerunfailures-8.0 at /usr/lib/ckan/default/lib/python3.9/site-packages/pytest_rerunfailures.py
The text was updated successfully, but these errors were encountered:
Sorry for writing this issue here, but pytest-ckan doesn't take issues.
CKAN version: 2.97
Describe the bug
I am writing an extension. For some base functionalities I can write ckan-independant tests. I skip a few tests, as they're not as "robust". In order to be able to choose running them anyways I implemented a cli hook. When I only had pytest installed everything worked fine. Now I ran the installation of pytest-ckan. Since I did that:
How can I run tests, that are marked to be skipped?
Steps to reproduce
an example test:
confest.py
Expected behavior
What I expect is that I am not forced to pass a ckan.ini if my tests don't require it and that if I do my added cli commands work.
Additional details
The text was updated successfully, but these errors were encountered: