Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fixcore/tests/fixcore/model/model_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def test_number() -> None:
assert int32.coerce_if_required("no number") is None
assert int32.check_valid(1) is None
assert int32.check_valid(8) is None
assert int32.check_valid("8") is 8
assert int32.check_valid("8") == 8
assert expect_error(int32, "7.123") == "Expected type int32 but got str"
assert flot.check_valid("7.123") == 7.123
assert expect_error(int32, 0) == ">0< should be greater or equals than: 1"
Expand Down
8 changes: 4 additions & 4 deletions fixcore/tests/fixcore/util_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ def test_access_json() -> None:
assert access.a == "a"
assert access.b.d.f[2] == 2
assert access.this == js
assert str(access.b.d.f[99]) is "null"
assert str(access.b.d.f["test"]) is "null"
assert str(access.foo.bla.bar[23].now) is "null"
assert str(access.b.d.f[99]) == "null"
assert str(access.b.d.f["test"]) == "null"
assert str(access.foo.bla.bar[23].now) == "null"
assert json.dumps(access.b.d, sort_keys=True) == '{"e": "e", "f": [0, 1, 2, 3, 4]}'

assert access["a"] == "a"
assert access["b"]["d"]["f"][2] == 2
assert str(access["foo"]["bla"]["bar"][23]["now"]) is "null"
assert str(access["foo"]["bla"]["bar"][23]["now"]) == "null"
assert json.dumps(access["b"]["d"], sort_keys=True) == '{"e": "e", "f": [0, 1, 2, 3, 4]}'

assert [a for a in access] == ["a", "b"]
Expand Down
2 changes: 1 addition & 1 deletion plugins/aws/fix_plugin_aws/resource/dynamodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ def add_tags(table: AwsDynamoDbGlobalTable) -> None:
builder.submit_work(service_name, add_instance, js)

def connect_in_graph(self, builder: GraphBuilder, source: Json) -> None:
if self.dynamodb_replication_group is not []:
if self.dynamodb_replication_group != []:
for replica in self.dynamodb_replication_group:
if replica.kms_master_key_id:
builder.dependant_node(
Expand Down
Loading