refactor(bottle): finish bottle package move
lint / lint (push) Successful in 2m1s
test / unit (pull_request) Failing after 53s
test / integration (pull_request) Successful in 25s
test / coverage (pull_request) Failing after 1m1s

This commit is contained in:
2026-07-06 16:13:30 -04:00
committed by claude
parent 7bbb56a4c8
commit d0eded11d0
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()