Skip to content

Commit 81731ce

Browse files
eesa456axelkrastek1-nhs
authored andcommitted
NRL-820 sonarcloud issues
1 parent 71c516d commit 81731ce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

layer/nrlf/core/dynamodb/tests/test_repository.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ def test_get_sk_ids_for_type_exception_thrown_for_invalid_type():
1313

1414
def test_get_sk_ids_for_type_returns_type_and_category_for_every_type():
1515
for each in PointerTypes.list():
16-
category, type = _get_sk_ids_for_type(each)
17-
assert category and type
16+
category, pointer_type = _get_sk_ids_for_type(each)
17+
assert category and pointer_type
1818

1919

2020
def test_get_sk_ids_for_type_exception_thrown_if_new_type_has_no_category():
2121
pointer_types = PointerTypes.list()
2222
pointer_types.append("some_pointer_type")
2323
with pytest.raises(ValueError) as error:
2424
for each in pointer_types:
25-
category, type = _get_sk_ids_for_type(each)
26-
assert category and type
25+
category, pointer_type = _get_sk_ids_for_type(each)
26+
assert category and pointer_type
2727

2828
assert (
2929
str(error.value) == "Cannot find category for pointer type: some_pointer_type"

0 commit comments

Comments
 (0)