Skip to content

Commit

Permalink
rebased for new tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Rory Murdock committed Jul 8, 2021
1 parent 25d43c4 commit d956467
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/test_build_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ def test_build_functions_basic():
assert functions.build_functions(config) == [
" def code_test(self):",
' """Let\'s peel"""',
'',
' response = self.api.get(f"/api/system/info")',
"",
" return response.text",
Expand Down Expand Up @@ -547,6 +548,7 @@ def test_check_http_response_exists():
assert functions.build_functions(config) == [
" def code_test(self):",
' """Let\'s peel"""',
'',
' response = self.api.get(f"/api/system/info")',
"",
" return response.text",
Expand Down Expand Up @@ -591,7 +593,7 @@ def test_build_querystring_function():
"",
" querystring = self.filter_querystring(querystring)",
"",
' response = self.api.get("/api/system/info", querystring=querystring)',
' response = self.api.get(f"/api/system/info", querystring=querystring)',
"",
" def filter_querystring(self, querystring):",
' """Removes None value keys from the querystring"""',
Expand Down Expand Up @@ -624,7 +626,7 @@ def test_build_querystring_function_missing_qs():
" def code_test(self):",
' """Let\'s peel"""',
"",
' response = self.api.get("/api/system/info")',
' response = self.api.get(f"/api/system/info")',
"",
]

Expand Down Expand Up @@ -652,7 +654,7 @@ def test_build_querystring_function_no_filter():
" querystring = {}",
' querystring["test"] = "testing"',
"",
' response = self.api.get("/api/system/info", querystring=querystring)',
' response = self.api.get(f"/api/system/info", querystring=querystring)',
"",
]

Expand All @@ -677,6 +679,7 @@ def test_build_functions_code_end():
assert functions.build_functions(config) == [
" def code_test(self):",
' """Let\'s peel"""',
'',
' response = self.api.get(f"/api/system/info")',
"",
" if self.check_http_response(response):",
Expand Down
1 change: 1 addition & 0 deletions tests/test_doby.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ def test_build_functions_basic():
assert DOBY.get_functions() == [
" def code_test(self):",
' """Let\'s peel"""',
'',
' response = self.api.get(f"/api/system/info")',
"",
" return response.text",
Expand Down

0 comments on commit d956467

Please sign in to comment.