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
35
venv/lib/python3.11/site-packages/mypy/test/teststubinfo.py
Normal file
35
venv/lib/python3.11/site-packages/mypy/test/teststubinfo.py
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
from __future__ import annotations
|
||||
|
||||
import unittest
|
||||
|
||||
from mypy.stubinfo import (
|
||||
is_module_from_legacy_bundled_package,
|
||||
legacy_bundled_packages,
|
||||
non_bundled_packages_flat,
|
||||
stub_distribution_name,
|
||||
)
|
||||
|
||||
|
||||
class TestStubInfo(unittest.TestCase):
|
||||
def test_is_legacy_bundled_packages(self) -> None:
|
||||
assert not is_module_from_legacy_bundled_package("foobar_asdf")
|
||||
assert not is_module_from_legacy_bundled_package("PIL")
|
||||
assert is_module_from_legacy_bundled_package("pycurl")
|
||||
assert is_module_from_legacy_bundled_package("dateparser")
|
||||
|
||||
def test_stub_distribution_name(self) -> None:
|
||||
assert stub_distribution_name("foobar_asdf") is None
|
||||
assert stub_distribution_name("pycurl") == "types-pycurl"
|
||||
assert stub_distribution_name("psutil") == "types-psutil"
|
||||
assert stub_distribution_name("sassutils") == "types-libsass"
|
||||
assert stub_distribution_name("google.cloud.ndb") == "types-google-cloud-ndb"
|
||||
assert stub_distribution_name("google.cloud.ndb.submodule") == "types-google-cloud-ndb"
|
||||
assert stub_distribution_name("google.cloud.unknown") is None
|
||||
assert stub_distribution_name("google.protobuf") == "types-protobuf"
|
||||
assert stub_distribution_name("google.protobuf.submodule") == "types-protobuf"
|
||||
assert stub_distribution_name("google") is None
|
||||
|
||||
def test_period_in_top_level(self) -> None:
|
||||
for packages in (non_bundled_packages_flat, legacy_bundled_packages):
|
||||
for top_level_module in packages:
|
||||
assert "." not in top_level_module
|
||||
Loading…
Add table
Add a link
Reference in a new issue