feat: indie status page MVP -- FastAPI + SQLite
- 8 DB models (services, incidents, monitors, subscribers, etc.) - Full CRUD API for services, incidents, monitors - Public status page with live data - Incident detail page with timeline - API key authentication - Uptime monitoring scheduler - 13 tests passing - TECHNICAL_DESIGN.md with full spec
This commit is contained in:
commit
902133edd3
4655 changed files with 1342691 additions and 0 deletions
|
|
@ -0,0 +1,45 @@
|
|||
import pytest
|
||||
from jaraco import path
|
||||
|
||||
from setuptools.glob import glob
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
('tree', 'pattern', 'matches'),
|
||||
(
|
||||
('', b'', []),
|
||||
('', '', []),
|
||||
(
|
||||
"""
|
||||
appveyor.yml
|
||||
CHANGES.rst
|
||||
LICENSE
|
||||
MANIFEST.in
|
||||
pyproject.toml
|
||||
README.rst
|
||||
setup.cfg
|
||||
setup.py
|
||||
""",
|
||||
'*.rst',
|
||||
('CHANGES.rst', 'README.rst'),
|
||||
),
|
||||
(
|
||||
"""
|
||||
appveyor.yml
|
||||
CHANGES.rst
|
||||
LICENSE
|
||||
MANIFEST.in
|
||||
pyproject.toml
|
||||
README.rst
|
||||
setup.cfg
|
||||
setup.py
|
||||
""",
|
||||
b'*.rst',
|
||||
(b'CHANGES.rst', b'README.rst'),
|
||||
),
|
||||
),
|
||||
)
|
||||
def test_glob(monkeypatch, tmpdir, tree, pattern, matches):
|
||||
monkeypatch.chdir(tmpdir)
|
||||
path.build({name: '' for name in tree.split()})
|
||||
assert list(sorted(glob(pattern))) == list(sorted(matches))
|
||||
Loading…
Add table
Add a link
Reference in a new issue