Skip to content

Commit

Permalink
remove dependency tests (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieqiong authored Aug 20, 2024
1 parent f78b4b9 commit ef29c6a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 59 deletions.
24 changes: 0 additions & 24 deletions src/diffpy/pdfgui/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,28 +78,4 @@ def test():
return result


def testdeps():
"""Execute all unit tests for diffpy.pdfgui and its dependencies.
Returns
-------
result : `unittest.TestResult`
"""
from importlib import import_module

modulenames = """
diffpy.pdfgui.tests
diffpy.structure.tests
diffpy.pdffit2.tests
diffpy.utils.tests
""".split()
suite = unittest.TestSuite()
for mname in modulenames:
mod = import_module(mname)
suite.addTests(mod.testsuite())
runner = unittest.TextTestRunner()
result = runner.run(suite)
return result


# End of file
5 changes: 0 additions & 5 deletions src/diffpy/pdfgui/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
import json
import subprocess
from pathlib import Path

import pytest


def pytest_collection_modifyitems(session, config, items):
subprocess.run(["python", "-m", "diffpy.pdfgui.tests.rundeps"], check=True)


@pytest.fixture
def user_filesystem(tmp_path):
base_dir = Path(tmp_path)
Expand Down
30 changes: 0 additions & 30 deletions src/diffpy/pdfgui/tests/rundeps.py

This file was deleted.

0 comments on commit ef29c6a

Please sign in to comment.