-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
99 additions
and
17 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
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
Empty file.
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import json | ||
from django.urls import reverse | ||
from tests.helper import dict_compare_keys | ||
from tests.test_fyle.fixtures import fixtures as data | ||
|
||
|
||
def test_get_accounting_exports(api_client, test_connection, create_temp_workspace, add_fyle_credentials, add_accounting_export_expenses): | ||
""" | ||
Test get accounting exports | ||
""" | ||
url = reverse('accounting-exports', kwargs={'workspace_id': 1}) | ||
|
||
api_client.credentials(HTTP_AUTHORIZATION='Bearer {}'.format(test_connection.access_token)) | ||
|
||
response = api_client.get(url) | ||
assert response.status_code == 200 | ||
response = json.loads(response.content) | ||
|
||
assert dict_compare_keys(response, data['accounting_export_response']) == [], 'expense group api return diffs in keys' |
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