- 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
15 lines
424 B
Python
15 lines
424 B
Python
import sys
|
|
|
|
from setuptools import depends
|
|
|
|
|
|
class TestGetModuleConstant:
|
|
def test_basic(self):
|
|
"""
|
|
Invoke get_module_constant on a module in
|
|
the test package.
|
|
"""
|
|
mod_name = 'setuptools.tests.mod_with_constant'
|
|
val = depends.get_module_constant(mod_name, 'value')
|
|
assert val == 'three, sir!'
|
|
assert 'setuptools.tests.mod_with_constant' not in sys.modules
|