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 the pytest ini #1

Merged
merged 3 commits into from
Oct 31, 2023

Conversation

jameshalgren
Copy link

@jameshalgren jameshalgren commented Oct 31, 2023

Updated the layout to follow this common model and included the pytest.ini file in the right location. Running pytest and python -m pytest from any position within the repository should be successful.

.
├── LICENSE.txt
├── nwmurl
│  ├── __init__.py
│  └── urlgennwm.py
├── pytest.ini
├── README.md
├── setup.py
└── test
   └── test_cases.py

Also, reformatted a number of files according to strict formatting rules, so there are a few changes in other source files not related to testing.

Many complicated but useful discussions here:
https://stackoverflow.com/questions/41748464/pytest-cannot-import-module-while-python-can

And a very good example here:
https://github.com/Mrodent/pytest_probs/blob/main/src/core/bubble.py

We boiled things down to the minimum.

RohanSunkarapalli and others added 3 commits October 31, 2023 13:14
pytest.ini is required in order to run the test
with `pytest` instead of just `python -m pytest`.
@RohanSunkarapalli
Copy link
Owner

Looks useful and seems working anywhere when you run "pytest". Will modify the changes to the format and push the changes.

@RohanSunkarapalli RohanSunkarapalli merged commit 8c2866f into RohanSunkarapalli:main Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants