Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Communications Backbone System
communications-backbone
Commits
655bff35
Unverified
Commit
655bff35
authored
2 years ago
by
Dan Jones
Browse files
Options
Download
Email Patches
Plain Diff
test: remove duplicate test
parent
8dcae84f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
+0
-19
tests/api_client_test.py
tests/api_client_test.py
+0
-19
No files found.
tests/api_client_test.py
View file @
655bff35
...
...
@@ -66,25 +66,6 @@ def test_put_client_1(mock_clients):
assert
"secret"
in
response
.
json
@
pytest
.
mark
.
usefixtures
(
"mock_clients"
)
def
test_put_client_1
(
mock_clients
):
app
=
create_app
()
with
patch
(
"builtins.open"
,
mock_open
(
read_data
=
json
.
dumps
(
mock_clients
))
)
as
mock_file_open
,
app
.
test_client
()
as
app_test_client
:
response
=
app_test_client
.
get
(
"/client/client-1"
)
client_1
=
response
.
json
print
(
client_1
)
client_1
[
"subscription"
]
=
"soar.client-1.#"
response
=
app_test_client
.
put
(
"/client/client-1"
,
json
=
client_1
)
assert
response
.
status_code
==
201
assert
"client_id"
in
response
.
json
assert
response
.
json
[
"client_id"
]
==
"client-1"
assert
response
.
json
[
"subscription"
]
==
"soar.client-1.#"
assert
"client_name"
in
response
.
json
assert
"secret"
in
response
.
json
@
pytest
.
mark
.
usefixtures
(
"mock_clients"
)
def
test_delete_client_1
(
mock_clients
):
app
=
create_app
()
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment