Skip to content

Commit 95fb0a2

Browse files
committed
tests: remove unnessessary serialization tests
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 73007f8 commit 95fb0a2

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

tests/test_model_tool_repository.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,6 @@ def test_tool_with_component_and_service_load_json(self) -> None:
4444
good_bom = get_bom_with_tools_with_component_and_service_migrate()
4545
self.assertTrue(bom == good_bom)
4646

47-
def test_tool_with_component_and_service_render_json(self) -> None:
48-
bom = get_bom_with_tools_with_component_and_service_migrate()
49-
test_file = join(OWN_DATA_DIRECTORY, 'json', '1.5',
50-
'bom_with_tool_with_component_and_service.json')
51-
with open(test_file, encoding='utf-8') as f:
52-
self.assertEqual(JsonV1Dot5(bom).output_as_string(indent=2), f.read())
53-
5447
def test_tool_with_component_and_service_load_xml(self) -> None:
5548
test_file = join(OWN_DATA_DIRECTORY, 'xml', '1.5',
5649
'bom_with_tool_with_component_and_service.xml')
@@ -60,13 +53,6 @@ def test_tool_with_component_and_service_load_xml(self) -> None:
6053
self.assertEqual(bom.metadata.tools.components[0].name, 'test-component')
6154
self.assertEqual(bom.metadata.tools.services[0].name, 'test-service')
6255

63-
def test_tool_with_componet_and_service_render_xml(self) -> None:
64-
bom = get_bom_with_tools_with_component_and_service_migrate()
65-
test_file = join(OWN_DATA_DIRECTORY, 'xml', '1.5',
66-
'bom_with_tool_with_component_and_service.xml')
67-
with open(test_file, encoding='UTF-8') as f:
68-
self.assertEqual(XmlV1Dot5(bom).output_as_string(indent=2), f.read())
69-
7056
def test_assign_component(self) -> None:
7157
t = ToolsRepository()
7258
t.components = SortedSet([Component(name='test-component')])

0 commit comments

Comments
 (0)