forked from Submitty/Submitty
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Testing:Developer] Format utils tests (Submitty#10323)
### Please check if the PR fulfills these requirements: * [x] Tests for the changes have been added/updated (if possible) * [x] Documentation has been updated/added if relevant * [x] Screenshots are attached to Github PR if visual/UI changes were made ### What is the current behavior? <!-- List issue if it fixes/closes/implements one using the "Fixes #<number>" or "Closes #<number>" syntax --> - Util test files have inconsistent formatting ### What is the new behavior? - None of the test files are changed when running ~~the formatter~~ `black` formatter ### Other information? <!-- Is this a breaking change? --> <!-- How did you test --> - These changes branch off the changes from [this PR](Submitty#10297)
- Loading branch information
1 parent
95ea59d
commit 56e404d
Showing
5 changed files
with
122 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,22 +6,24 @@ | |
class TestDbUtils(TestCase): | ||
def test_connection_string(self): | ||
self.assertEqual( | ||
'postgresql://test:[email protected]:1111/db_name', | ||
"postgresql://test:[email protected]:1111/db_name", | ||
db_utils.generate_connect_string( | ||
'127.0.0.1', | ||
"127.0.0.1", | ||
1111, | ||
'db_name', | ||
'test', | ||
'my_pass', | ||
)) | ||
"db_name", | ||
"test", | ||
"my_pass", | ||
), | ||
) | ||
|
||
def test_connection_string_dir(self): | ||
self.assertEqual( | ||
'postgresql://test:my_pass@/db_name?host=/var/run/postgresql', | ||
"postgresql://test:my_pass@/db_name?host=/var/run/postgresql", | ||
db_utils.generate_connect_string( | ||
'/var/run/postgresql', | ||
"/var/run/postgresql", | ||
5432, | ||
'db_name', | ||
'test', | ||
'my_pass', | ||
)) | ||
"db_name", | ||
"test", | ||
"my_pass", | ||
), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.