Skip to content

Commit

Permalink
Fixed pylinting properly this time by renaming local test variables
Browse files Browse the repository at this point in the history
  • Loading branch information
DrTVockerodtMO committed Oct 21, 2024
1 parent 24add19 commit d88b6e7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/psyclone/tests/psyad/tl2ad_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,14 @@ def test_generate_adjoint_str_lfric_api():
testkern = os.path.join(LFRIC_TEST_FILES_DIR, "tl_testkern_mod.F90")
with open(testkern, mode="r", encoding="utf-8") as kfile:
tl_code = kfile.read()
result, test_result = generate_adjoint_str(tl_code,
["xi", "u", "res_dot_product", "curl_u"],
api="lfric",
create_test=True,
test_filename="atlt_testkern_mod.X90")
assert "subroutine adj_testkern_code" in result.lower()
assert "module atlt_testkern_mod" in test_result.lower()
assert "subroutine atlt_testkern" in test_result.lower()
adj, test = generate_adjoint_str(tl_code,
["xi", "u", "res_dot_product", "curl_u"],
api="lfric",
create_test=True,
test_filename="atlt_testkern_mod.X90")
assert "subroutine adj_testkern_code" in adj.lower()
assert "module atlt_testkern_mod" in test.lower()
assert "subroutine atlt_testkern" in test.lower()


def test_generate_adjoint_str_function():
Expand Down

0 comments on commit d88b6e7

Please sign in to comment.