Skip to content

Commit

Permalink
add support
Browse files Browse the repository at this point in the history
  • Loading branch information
NileshPant1999 committed Oct 23, 2023
1 parent 0d664dc commit dc785cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apps/fyle/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
from apps.fyle.views import CustomFieldView

urlpatterns = [
path("expense_fields/", CustomFieldView.as_view(), name="fyle-expense-fields"),
path('expense_fields/', CustomFieldView.as_view(), name='fyle-expense-fields'),
]
12 changes: 6 additions & 6 deletions tests/test_fyle/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from tests.test_fyle.fixtures import fixtures as fyle_fixtures


@pytest.mark.django_db(databases=["default"])
@pytest.mark.django_db(databases=['default'])
def test_fyle_expense_fields(
api_client,
test_connection,
Expand All @@ -18,11 +18,11 @@ def test_fyle_expense_fields(
workspace_id = 1

access_token = test_connection.access_token
url = reverse("fyle-expense-fields", kwargs={"workspace_id": workspace_id})
url = reverse('fyle-expense-fields', kwargs={'workspace_id': workspace_id})

mocker.patch(
"fyle.platform.apis.v1beta.admin.expense_fields.list_all",
return_value=fyle_fixtures["get_all_custom_fields"],
'fyle.platform.apis.v1beta.admin.expense_fields.list_all',
return_value=fyle_fixtures['get_all_custom_fields'],
)

api_client.credentials(HTTP_AUTHORIZATION="Bearer {}".format(access_token))
Expand All @@ -32,5 +32,5 @@ def test_fyle_expense_fields(
response = json.loads(response.content)

assert (
dict_compare_keys(response, fyle_fixtures["fyle_expense_custom_fields"]) == []
), "expense group api return diffs in keys"
dict_compare_keys(response, fyle_fixtures['fyle_expense_custom_fields']) == []
), 'expense group api return diffs in keys'

0 comments on commit dc785cc

Please sign in to comment.