Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Updating platform connector version for timeouts fix #65

Merged
merged 3 commits into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ gevent==23.9.1
gunicorn==20.1.0

# Platform SDK
fyle==0.30.0
fyle==0.34.0

# Reusable Fyle Packages
fyle-rest-auth==1.4.0
fyle-accounting-mappings==1.26.0
fyle-integrations-platform-connector==1.30.0
fyle-integrations-platform-connector==1.35.3

# Postgres Dependincies
psycopg2-binary==2.8.4
Expand Down
6 changes: 6 additions & 0 deletions tests/test_fyle/test_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ def test_import_reimbursable_expenses(

workspace_id = 1
accounting_export = AccountingExport.objects.get(workspace_id=workspace_id, type='FETCHING_REIMBURSABLE_EXPENSES')

accounting_export.workspace.org_id = 'orNoatdUnm1w'
accounting_export.workspace.save()

import_reimbursable_expenses(workspace_id, accounting_export)

expenses = Expense.objects.filter(workspace_id=workspace_id, fund_source='PERSONAL', exported=False)
Expand Down Expand Up @@ -124,6 +128,8 @@ def test_import_credit_card_expenses(

workspace_id = 1
accounting_export = AccountingExport.objects.get(workspace_id=workspace_id, type='FETCHING_CREDIT_CARD_EXPENSES')
accounting_export.workspace.org_id = 'orNoatdUnm1w'
accounting_export.workspace.save()
import_credit_card_expenses(workspace_id, accounting_export)

expenses = Expense.objects.filter(workspace_id=workspace_id, fund_source='CCC', exported=False)
Expand Down
28 changes: 28 additions & 0 deletions tests/test_qbd/test_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ def test_create_bills_iif_file_report(

workspace_id = 1
accounting_export = AccountingExport.objects.get(workspace_id=workspace_id, type='FETCHING_REIMBURSABLE_EXPENSES')
accounting_export.workspace.org_id = 'orNoatdUnm1w'
accounting_export.workspace.save()
import_reimbursable_expenses(workspace_id, accounting_export)

accounting_export = AccountingExport.objects.get(
Expand Down Expand Up @@ -126,6 +128,8 @@ def test_create_bills_iif_file_report_fail(

workspace_id = 1
accounting_export = AccountingExport.objects.get(workspace_id=workspace_id, type='FETCHING_REIMBURSABLE_EXPENSES')
accounting_export.workspace.org_id = 'orNoatdUnm1w'
accounting_export.workspace.save()
import_reimbursable_expenses(workspace_id, accounting_export)

accounting_export = AccountingExport.objects.get(
Expand Down Expand Up @@ -176,6 +180,8 @@ def test_create_bills_iif_file_report_fatal(

workspace_id = 1
accounting_export = AccountingExport.objects.get(workspace_id=workspace_id, type='FETCHING_REIMBURSABLE_EXPENSES')
accounting_export.workspace.org_id = 'orNoatdUnm1w'
accounting_export.workspace.save()
import_reimbursable_expenses(workspace_id, accounting_export)

accounting_export = AccountingExport.objects.get(
Expand Down Expand Up @@ -234,6 +240,8 @@ def test_create_bills_iif_file_expense(

workspace_id = 3
accounting_export = AccountingExport.objects.get(workspace_id=workspace_id, type='FETCHING_REIMBURSABLE_EXPENSES')
accounting_export.workspace.org_id = 'orNoatdUnm1w'
accounting_export.workspace.save()
import_reimbursable_expenses(workspace_id, accounting_export)

accounting_export = AccountingExport.objects.get(
Expand Down Expand Up @@ -293,6 +301,8 @@ def test_create_credit_card_purchases_iif_file_expense_vendor(
workspace_id = 1

accounting_export = AccountingExport.objects.get(workspace_id=workspace_id, type='FETCHING_CREDIT_CARD_EXPENSES')
accounting_export.workspace.org_id = 'orNoatdUnm1w'
accounting_export.workspace.save()

import_credit_card_expenses(workspace_id, accounting_export)

Expand Down Expand Up @@ -354,6 +364,8 @@ def test_create_credit_card_purchases_iif_file_expense_employee(
workspace_id = 2

accounting_export = AccountingExport.objects.get(workspace_id=workspace_id, type='FETCHING_CREDIT_CARD_EXPENSES')
accounting_export.workspace.org_id = 'orNoatdUnm1w'
accounting_export.workspace.save()

import_credit_card_expenses(workspace_id, accounting_export)

Expand Down Expand Up @@ -416,6 +428,8 @@ def test_create_credit_card_purchases_iif_file_expense_fail(
workspace_id = 1

accounting_export = AccountingExport.objects.get(workspace_id=workspace_id, type='FETCHING_CREDIT_CARD_EXPENSES')
accounting_export.workspace.org_id = 'orNoatdUnm1w'
accounting_export.workspace.save()

import_credit_card_expenses(workspace_id, accounting_export)

Expand Down Expand Up @@ -464,6 +478,8 @@ def test_create_credit_card_purchases_iif_file_expense_fatal(
workspace_id = 1

accounting_export = AccountingExport.objects.get(workspace_id=workspace_id, type='FETCHING_CREDIT_CARD_EXPENSES')
accounting_export.workspace.org_id = 'orNoatdUnm1w'
accounting_export.workspace.save()

import_credit_card_expenses(workspace_id, accounting_export)

Expand Down Expand Up @@ -520,6 +536,8 @@ def test_create_journals_iif_file_reimbursable_expense(
workspace_id = 3

accounting_export = AccountingExport.objects.get(workspace_id=workspace_id, type='FETCHING_REIMBURSABLE_EXPENSES')
accounting_export.workspace.org_id = 'orNoatdUnm1w'
accounting_export.workspace.save()

import_reimbursable_expenses(workspace_id, accounting_export)

Expand Down Expand Up @@ -582,6 +600,8 @@ def test_create_journals_iif_file_ccc_report_vendor(
workspace_id = 1

accounting_export = AccountingExport.objects.get(workspace_id=workspace_id, type='FETCHING_CREDIT_CARD_EXPENSES')
accounting_export.workspace.org_id = 'orNoatdUnm1w'
accounting_export.workspace.save()

import_credit_card_expenses(workspace_id, accounting_export)

Expand Down Expand Up @@ -646,6 +666,8 @@ def test_create_journals_iif_file_ccc_report_employee(
workspace_id = 2

accounting_export = AccountingExport.objects.get(workspace_id=workspace_id, type='FETCHING_CREDIT_CARD_EXPENSES')
accounting_export.workspace.org_id = 'orNoatdUnm1w'
accounting_export.workspace.save()

import_credit_card_expenses(workspace_id, accounting_export)

Expand Down Expand Up @@ -709,6 +731,8 @@ def test_create_journals_iif_file_ccc_report_fail(
workspace_id = 1

accounting_export = AccountingExport.objects.get(workspace_id=workspace_id, type='FETCHING_CREDIT_CARD_EXPENSES')
accounting_export.workspace.org_id = 'orNoatdUnm1w'
accounting_export.workspace.save()

import_credit_card_expenses(workspace_id, accounting_export)

Expand Down Expand Up @@ -760,6 +784,8 @@ def test_create_journals_iif_file_ccc_report_fatal(
workspace_id = 1

accounting_export = AccountingExport.objects.get(workspace_id=workspace_id, type='FETCHING_CREDIT_CARD_EXPENSES')
accounting_export.workspace.org_id = 'orNoatdUnm1w'
accounting_export.workspace.save()

import_credit_card_expenses(workspace_id, accounting_export)

Expand Down Expand Up @@ -829,6 +855,8 @@ def test_email_failure(
workspace_id = 1

accounting_export = AccountingExport.objects.get(workspace_id=workspace_id, type='FETCHING_CREDIT_CARD_EXPENSES')
accounting_export.workspace.org_id = 'orNoatdUnm1w'
accounting_export.workspace.save()

import_credit_card_expenses(workspace_id, accounting_export)

Expand Down
Loading