Skip to content

Commit 5ab8b56

Browse files
committed
try pytest
1 parent c9dd379 commit 5ab8b56

22 files changed

+6
-19
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ jobs:
5959
run: |
6060
export DISPLAY=:99
6161
conda activate test
62-
coverage run -m unittest run_tests.py
62+
coverage run -m pytest -vv -s
6363
coverage report -m
6464
codecov

run_tests.py

-18
This file was deleted.

src/diffpy/pdfgui/tests/conftest.py

+5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
import json
2+
import subprocess
23
from pathlib import Path
34

45
import pytest
56

67

8+
def pytest_collection_modifyitems(session, config, items):
9+
subprocess.run(["python", "-m", "diffpy.pdfgui.tests.rundeps"], check=True)
10+
11+
712
@pytest.fixture
813
def user_filesystem(tmp_path):
914
base_dir = Path(tmp_path)

0 commit comments

Comments
 (0)