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

remove dependency tests #169

Merged
merged 1 commit into from
Aug 20, 2024
Merged
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
@@ -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)
30 changes: 0 additions & 30 deletions src/diffpy/pdfgui/tests/rundeps.py

This file was deleted.