Skip to content

Commit

Permalink
Test - DB Metadata - Use shared credentials file
Browse files Browse the repository at this point in the history
  • Loading branch information
jomey committed Sep 20, 2024
1 parent 33d8333 commit ed49d90
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/test_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,11 @@ def test_getting_db(return_metadata, expected_objs):
Test we can receive a connection and opt out of getting the metadata
"""

result = get_db('builder:db_builder@localhost/test', return_metadata=return_metadata)
db_info = DBSetup.DB_INFO

result = get_db(
f"{db_info["username"]}:{db_info["password"]}@"
f"{db_info["address"]}/{db_info["db_name"]}",
return_metadata=return_metadata
)
assert len(result) == expected_objs

0 comments on commit ed49d90

Please sign in to comment.