-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpytest.ini
More file actions
58 lines (51 loc) · 1.76 KB
/
pytest.ini
File metadata and controls
58 lines (51 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
[pytest]
# Pytest configuration for Stream Daemon
# Because we need to TEST the code that announces streams.
# Unit tests. Integration tests. Markers. Coverage reports.
# For a script that posts "Going live!" to social media.
# This is software engineering. This is craftsmanship. This is... testing Twitter bots.
# Test discovery patterns
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Exclude standalone utility scripts that aren't pytest tests
norecursedirs = .git .github __pycache__ build dist *.egg-info Archive Docker media scripts
# test_local_install.py, test_connection.py, and test_llm.py are standalone validation scripts
# They have module-level code and return values from test_ functions (not pytest-compatible)
# Run them directly:
# python3 tests/test_local_install.py
# python3 tests/test_connection.py
# python3 tests/test_llm.py
testpaths = tests
# Display settings
addopts =
-v
--strict-markers
--tb=short
--color=yes
--ignore=tests/test_local_install.py
--ignore=tests/test_connection.py
--ignore=tests/test_llm.py
# Markers for test categorization
markers =
streaming: Tests for streaming platforms (Twitch, YouTube, Kick)
social: Tests for social media platforms (Mastodon, Bluesky, Discord, Matrix)
integration: Integration tests that test multiple components
ai: Tests for AI/LLM functionality (Ollama, Gemini)
slow: Tests that take a long time to run
# Coverage settings (when using --cov)
[coverage:run]
source = stream_daemon
omit =
*/tests/*
*/test_*.py
*/__pycache__/*
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.:
if TYPE_CHECKING:
@abstractmethod