feat: sync latest ARR implementation
This commit is contained in:
@@ -23,6 +23,10 @@ CONTRACT_PATH = (
|
||||
|
||||
|
||||
class BookingFixtureParserTests(unittest.TestCase):
|
||||
@unittest.skipUnless(
|
||||
FIXTURE_PATH.is_file(),
|
||||
"private booking acceptance fixture is not bundled with ARR2.0",
|
||||
)
|
||||
def test_real_fixture_preserves_every_source_row(self):
|
||||
document = parse_fixture_markdown(
|
||||
FIXTURE_PATH.read_text(encoding="utf-8")
|
||||
@@ -41,6 +45,10 @@ class BookingFixtureParserTests(unittest.TestCase):
|
||||
}
|
||||
self.assertEqual(len(coordinates), 867)
|
||||
|
||||
@unittest.skipUnless(
|
||||
FIXTURE_PATH.is_file(),
|
||||
"private booking acceptance fixture is not bundled with ARR2.0",
|
||||
)
|
||||
def test_group_code_is_not_unique_or_merged(self):
|
||||
document = parse_fixture_markdown(
|
||||
FIXTURE_PATH.read_text(encoding="utf-8")
|
||||
@@ -53,6 +61,10 @@ class BookingFixtureParserTests(unittest.TestCase):
|
||||
self.assertEqual({row.type_of_room_raw for row in rows}, {"DBL"})
|
||||
self.assertEqual(sum(row.no_of_rooms for row in rows), 12)
|
||||
|
||||
@unittest.skipUnless(
|
||||
FIXTURE_PATH.is_file(),
|
||||
"private booking acceptance fixture is not bundled with ARR2.0",
|
||||
)
|
||||
def test_simple_fixture_row_maps_to_one_room_item(self):
|
||||
document = parse_fixture_markdown(
|
||||
FIXTURE_PATH.read_text(encoding="utf-8")
|
||||
|
||||
Reference in New Issue
Block a user