Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.