Fix faulty starter test
@@ -11,25 +11,7 @@ from backup.model import Scyncer
@pytest.mark.asyncio
-async def test_bootstarp_requirements():
+async def test_bootstrap_requirements():
# This just verifies we're able to satisfy starter's injector requirements.
injector = Injector([BaseModule(Config()), MainModule()])
injector.get(Starter)
-
-
-@pytest.mark.asyncio
-async def test_start_work(injector, server):
- starter = injector.get(Starter)
- await starter.startup()
-
- # it would be nicer if Startable implemented a "isStarted" method instead of this hodge-podge
- assert injector.get(HaUpdater).isRunning()
- assert injector.get(DebugWorker).isRunning()
- assert injector.get(Scyncer).isRunning()
- assert injector.get(HaSource).isInitialized()
- assert injector.get(UiServer).running
- assert injector.get(Watcher).isStarted()
- assert injector.get(AddonStopper).isRunning()
-
- # Config should have Restarter and Resolver subscribed
- assert len(injector.get(Config)._subscriptions) == 2
