Skip to content

Commit

Permalink
Fix unit tests to reflect changes in join_str_contstraints
Browse files Browse the repository at this point in the history
  • Loading branch information
azawlocki committed Jul 6, 2021
1 parent 847a5b1 commit a99e756
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/payload/test_payload.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ async def test_payload():
assert builder.properties == {"golem.srv.app.foo.port": 1234}
assert (
builder.constraints
== "((&(golem.runtime.name=foo)\n\t(golem.inf.mem.gib>=32)\n\t(golem.inf.storage.gib>=1024)))"
== "(&(golem.runtime.name=foo)\n\t(golem.inf.mem.gib>=32)\n\t(golem.inf.storage.gib>=1024))"
)
6 changes: 3 additions & 3 deletions tests/props/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,19 @@ def test_constraint_model_serialize():
(
FooToo,
"!",
"(!((baz=21)))",
"(!(baz=21))",
False,
),
(
FooToo,
"&",
"((baz=21))",
"(baz=21)",
False,
),
(
FooToo,
"|",
"((baz=21))",
"(baz=21)",
False,
),
(
Expand Down
2 changes: 1 addition & 1 deletion tests/props/test_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ class Foo(AutodecoratingModel):
demand = DemandBuilder()
await foo.decorate_demand(demand)
assert demand.properties == {"some.bar": "a nice one"}
assert demand.constraints == "(((baz<=50)))"
assert demand.constraints == "(baz<=50)"

0 comments on commit a99e756

Please sign in to comment.