Skip to content

fix: correct expected tags value in test_dbNodeFromNode#883

Open
shiwani42 wants to merge 1 commit intoOWASP:mainfrom
shiwani42:fix/test-db-node-tags
Open

fix: correct expected tags value in test_dbNodeFromNode#883
shiwani42 wants to merge 1 commit intoOWASP:mainfrom
shiwani42:fix/test-db-node-tags

Conversation

@shiwani42
Copy link
Copy Markdown

Closes #870

Summary

test_dbNodeFromNode in application/tests/db_test.py (line 1083) expected tags="1,2" but dbNodeFromCode joins the input list ["111-111", "222-222"] with commas, producing "111-111,222-222". The expected value in the test was stale after the tag fix in #822 and was never updated.

Changes

  • Updated the expected tags value from "1,2" to "111-111,222-222" in test_dbNodeFromNode

Test plan

  • test_dbNodeFromNode passes
  • Full db_test.py suite run -- no regressions introduced by this change
  • black formatting verified

The test expected tags="1,2" but dbNodeFromCode joins the input list
["111-111", "222-222"] with commas, producing "111-111,222-222".
The expected value in the test was wrong.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_dbNodeFromNode uses stale expected value after dbNodeFromCode tag fix in #822

1 participant