Skip to content

Commit

Permalink
Fix: Solved code quality issues on tests caused by different black ve…
Browse files Browse the repository at this point in the history
…rsions.
  • Loading branch information
nesitor committed Jun 18, 2024
1 parent e5c1aaa commit 44bea47
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions aleph_message/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,20 @@ def test_instance_message_machine():

def test_instance_message_machine_with_confidential_options():
path = Path(
os.path.abspath(os.path.join(__file__, "../messages/instance_confidential_machine.json"))
os.path.abspath(
os.path.join(__file__, "../messages/instance_confidential_machine.json")
)
)
message = create_message_from_file(path, factory=InstanceMessage)

assert isinstance(message, InstanceMessage)
assert hash(message.content)
assert message.content.environment.confidential is True
assert message.content.environment.confidential_policy == "0x1"
assert message.content.requirements.node.node_hash == "4d4db19afca380fdf06ba7f916153d0f740db9de9eee23ad26ba96a90d8a2920"
assert (
message.content.requirements.node.node_hash
== "4d4db19afca380fdf06ba7f916153d0f740db9de9eee23ad26ba96a90d8a2920"
)


def test_message_machine_port_mapping():
Expand Down

0 comments on commit 44bea47

Please sign in to comment.