Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Build Team committed May 10, 2024
1 parent 4f13753 commit ccac9a6
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions okonomiyaki/runtimes/tests/test_runtime_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ def test_simple(self):

# When
runtime_info = IRuntimeInfo.factory_from_metadata(
metadata, prefix, name
)
metadata, prefix, name)

# Then
self.assertEqual(runtime_info.prefix, prefix)
Expand All @@ -52,8 +51,7 @@ def test_dollar_in_prefix(self):

# When
runtime_info = IRuntimeInfo.factory_from_metadata(
metadata, prefix, name
)
metadata, prefix, name)

# Then
self.assertEqual(runtime_info.prefix, prefix)
Expand All @@ -70,13 +68,11 @@ def test_json_round_trip(self):
prefix = os.path.abspath(os.path.join(u"foo", u"bar"))

r_runtime_info = IRuntimeInfo.factory_from_metadata(
metadata, prefix, name
)
metadata, prefix, name)

# When
runtime_info = IRuntimeInfo.factory_from_json_dict(
r_runtime_info.to_json_dict()
)
r_runtime_info.to_json_dict())

# Then
self.assertEqual(runtime_info, r_runtime_info)
Expand All @@ -99,8 +95,7 @@ def test_simple(self):

# When
runtime_info = IRuntimeInfo.factory_from_metadata(
metadata, prefix, name
)
metadata, prefix, name)

# Then
self.assertEqual(runtime_info.prefix, prefix)
Expand All @@ -117,13 +112,11 @@ def test_json_round_trip(self):
prefix = os.path.abspath(os.path.join(u"foo", u"bar"))

r_runtime_info = IRuntimeInfo.factory_from_metadata(
metadata, prefix, name
)
metadata, prefix, name)

# When
runtime_info = IRuntimeInfo.factory_from_json_dict(
r_runtime_info.to_json_dict()
)
r_runtime_info.to_json_dict())

# Then
self.assertEqual(runtime_info, r_runtime_info)

0 comments on commit ccac9a6

Please sign in to comment.