Skip to content

Commit

Permalink
tests and convert to post
Browse files Browse the repository at this point in the history
  • Loading branch information
Tllew committed Apr 24, 2024
1 parent ac3e8f2 commit 4309500
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exporter/core/organisation/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ def register_organisation(request, json):


def validate_registration_number(request, json):
response = client.get(request, "/organisations/registration_number", {**json})
response = client.post(request, "/organisations/registration_number", {**json})
return response.json(), response.status_code
2 changes: 1 addition & 1 deletion unit_tests/exporter/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,4 +695,4 @@ def mock_get_application(requests_mock, application_pk, application_reference_nu
@pytest.fixture
def mock_validate_registration_number(requests_mock):
url = client._build_absolute_uri("/organisations/registration_number")
return requests_mock.get(url=url, json={}, status_code=200)
return requests_mock.post(url=url, json={}, status_code=200)

0 comments on commit 4309500

Please sign in to comment.