Skip to content

Commit

Permalink
Add missing test files
Browse files Browse the repository at this point in the history
On branch main
Changes to be committed:
	modified:   biocompute/apis.py
	deleted:    tests/test_apis/test_api_authentication/test_api_auth_add.py
	deleted:    tests/test_apis/test_api_authentication/test_api_auth_remove.py
	deleted:    tests/test_apis/test_api_authentication/test_api_auth_reset_token.py
	new file:   tests/test_apis/test_api_prefix/test_prefixes_delete.py
	new file:   tests/test_apis/test_api_prefix/test_prefixes_info.py
	new file:   tests/test_apis/test_api_prefix/test_prefixes_user.py
	new file:   tests/test_apis/test_biocompute/test_get_draft.py
	new file:   tests/test_apis/test_biocompute/test_get_published.py
	new file:   tests/test_apis/test_biocompute/test_objects_publish.py
	new file:   tests/test_apis/test_biocompute/test_objects_validate.py
	new file:   tests/test_apis/test_search/__init__.py
	new file:   tests/test_apis/test_search/test_object_search.py
	new file:   tests/test_apis/test_search/test_users_search.py
  • Loading branch information
HadleyKing committed Jun 18, 2024
1 parent 456d002 commit 9e19615
Show file tree
Hide file tree
Showing 14 changed files with 4 additions and 147 deletions.
6 changes: 4 additions & 2 deletions biocompute/apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,12 +478,14 @@ def post(self, request) -> Response:
bco_status = "FAILED"
status_code = 400
message = "BCO not valid"

else:
publish_draft(
new_bco_instance = publish_draft(
bco_instance=bco_instance,
user=requester,
object=object
)
identifier = new_bco_instance.object_id
accepted_requests = True
bco_status = "SUCCESS"
status_code = 200
Expand Down Expand Up @@ -633,7 +635,7 @@ def post(self, request) -> Response:
status = "REJECTED",
code= 400,
message= f"BCO {response_id} rejected",
data=bco.errors
data=serialized_bco.errors
))
rejected_requests = True

Expand Down
60 changes: 0 additions & 60 deletions tests/test_apis/test_api_authentication/test_api_auth_add.py

This file was deleted.

51 changes: 0 additions & 51 deletions tests/test_apis/test_api_authentication/test_api_auth_remove.py

This file was deleted.

This file was deleted.

Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.

0 comments on commit 9e19615

Please sign in to comment.