Skip to content

Commit 9c57292

Browse files
Reworked dummy test directory.
1 parent 4f0d6ab commit 9c57292

File tree

3 files changed

+32
-25
lines changed

3 files changed

+32
-25
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
ruff format --check .
3030
- name: Run Tests
3131
run: |
32-
./tests/run_tests.py
32+
pytest tests/
3333
- name: Validate README.md
3434
# Ensure that the README renders correctly (required for uploading to PyPI).
3535
run: |

tests/run_tests.py

Lines changed: 0 additions & 24 deletions
This file was deleted.

tests/test_dummy.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/env python
2+
from __future__ import annotations
3+
4+
import ptpython.completer
5+
import ptpython.eventloop
6+
import ptpython.filters
7+
import ptpython.history_browser
8+
import ptpython.key_bindings
9+
import ptpython.layout
10+
import ptpython.python_input
11+
import ptpython.repl
12+
import ptpython.style
13+
import ptpython.utils
14+
import ptpython.validator
15+
16+
# For now there are no tests here.
17+
# However this is sufficient to do at least a syntax check.
18+
19+
20+
def test_dummy() -> None:
21+
assert ptpython.completer
22+
assert ptpython.eventloop
23+
assert ptpython.filters
24+
assert ptpython.history_browser
25+
assert ptpython.key_bindings
26+
assert ptpython.layout
27+
assert ptpython.python_input
28+
assert ptpython.repl
29+
assert ptpython.style
30+
assert ptpython.utils
31+
assert ptpython.validator

0 commit comments

Comments
 (0)