Skip to content

Commit 33fe8dc

Browse files
committed
test: update pytest config and add smoke tests
- Remove '--allow-no-tests' option as it's no longer needed with dedicated test directory - Move test files to 'tests' directory for better organization - Add initial smoke tests for PostgreSQL creation tools
1 parent 128ba3e commit 33fe8dc

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ disallow_untyped_defs = true
119119

120120
[tool.pytest.ini_options]
121121
minversion = "7.0"
122-
addopts = "-ra -q --allow-no-tests"
122+
addopts = "-ra -q"
123123
testpaths = [
124-
".",
124+
"tests",
125125
]

tests/test_smoke.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import inspect
2+
3+
import postgres_server
4+
5+
6+
def test_creation_tools_exist() -> None:
7+
assert inspect.iscoroutinefunction(postgres_server.PostgreSQL_create_schema)
8+
assert inspect.iscoroutinefunction(postgres_server.PostgreSQL_create_table)
9+
assert inspect.iscoroutinefunction(postgres_server.PostgreSQL_create_index)
10+

0 commit comments

Comments
 (0)