refactor(bottle): finish bottle package move
lint / lint (push) Successful in 2m6s
test / unit (pull_request) Failing after 54s
test / integration (pull_request) Successful in 22s
test / coverage (pull_request) Successful in 1m11s

This commit is contained in:
2026-07-06 16:13:30 -04:00
committed by codex
parent 29249f93b7
commit 931a4043df
13 changed files with 687 additions and 393 deletions
+10 -1
View File
@@ -8,7 +8,7 @@ from pathlib import Path
from bot_bottle import supervise
from bot_bottle import bottle_state
from bot_bottle.bottle_state import (
from bot_bottle.bottle.state import (
BottleMetadata,
read_metadata,
write_metadata,
@@ -31,6 +31,15 @@ class _FakeHomeMixin:
self._tmp.cleanup()
class TestCompatibilityImports(unittest.TestCase):
def test_legacy_bottle_state_module_reexports_state_api(self):
from bot_bottle import bottle_state as legacy
from bot_bottle.bottle import state
self.assertIs(legacy.BottleMetadata, state.BottleMetadata)
self.assertIs(legacy.read_metadata, state.read_metadata)
class TestPerBottleDockerfile(_FakeHomeMixin, unittest.TestCase):
def setUp(self):
self._setup_fake_home()