Skip to content

Move tests folder to top level for further refactoring - #79

Merged
sbillinge merged 8 commits into
diffpy:mainfrom
bobleesj:tests-dir
Sep 23, 2024
Merged

sbillinge merged 8 commits into
diffpy:mainfrom
bobleesj:tests-dir

Conversation

@bobleesj

Copy link
Copy Markdown
Contributor
  • Use conftest.py
  • rename test file names from TestPdfFit.py to test_pdffit.py, etc.

@bobleesj

bobleesj commented Sep 22, 2024 •

Copy link
Copy Markdown
Contributor Author

Warning also removed: Based on forked CI result: https://github.com/bobleesj/diffpy.pdffit2/actions/runs/10983571527/job/30493096104

From:

=============================== warnings summary ===============================
../../../../../usr/share/miniconda/envs/test/lib/python3.12/site-packages/diffpy/structure/version.py:29
  /usr/share/miniconda/envs/test/lib/python3.12/site-packages/diffpy/structure/version.py:29: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
    from pkg_resources import resource_filename

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================== 112 passed, 1 warning in 0.66s ========================

to

tests/test_exceptions.py ............................................... [ 41%]
.........................                                                [ 64%]
tests/test_pdffit.py ..............................                      [ 91%]
tests/test_phase_fractions.py ..                                         [ 92%]
tests/test_shape_factors.py ........                                     [100%]

============================= 112 passed in 0.60s ==============================

@sbillinge sbillinge left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super!

I think we need a news

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