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

Update latest changes from Submodule #359

Merged
merged 7 commits into from
May 13, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
run: |
docker-compose -f docker-compose-pipeline.yml build
docker-compose -f docker-compose-pipeline.yml up -d
docker-compose -f docker-compose-pipeline.yml exec -T api pytest tests/ --cov --cov-report=xml --cov-fail-under=88
docker-compose -f docker-compose-pipeline.yml exec -T api pytest tests/ --cov --cov-report=xml --cov-fail-under=87
echo "STATUS=$(cat pytest-coverage.txt | grep 'Required test' | awk '{ print $1 }')" >> $GITHUB_ENV
echo "FAILED=$(cat test-reports/report.xml | awk -F'=' '{print $5}' | awk -F' ' '{gsub(/"/, "", $1); print $1}')" >> $GITHUB_ENV
env:
Expand Down
2 changes: 1 addition & 1 deletion fyle_integrations_imports
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def test_construct_attributes_filter(db):
paginated_destination_attribute_values = ['Mobile App Redesign', 'Platform APIs', 'Fyle NetSuite Integration', 'Fyle Sage Intacct Integration', 'Support Taxes', 'T&M Project with Five Tasks', 'Fixed Fee Project with Five Tasks', 'General Overhead', 'General Overhead-Current', 'Youtube proj', 'Integrations', 'Yujiro', 'Pickle']
base = get_base_class_instance()

assert base.construct_attributes_filter('PROJECT', False) == {'attribute_type': 'PROJECT', 'workspace_id': 1}
assert base.construct_attributes_filter('PROJECT', False) == {'active': True, 'attribute_type': 'PROJECT', 'workspace_id': 1}

date_string = '2023-08-06 12:50:05.875029'
sync_after = datetime.strptime(date_string, '%Y-%m-%d %H:%M:%S.%f')
Expand All @@ -72,11 +72,11 @@ def test_construct_attributes_filter(db):

filters = base.construct_attributes_filter('COST_CENTER', False, paginated_destination_attribute_values)

assert filters == {'attribute_type': 'COST_CENTER', 'workspace_id': 1, 'value__in': paginated_destination_attribute_values}
assert filters == {'active': True, 'attribute_type': 'COST_CENTER', 'workspace_id': 1, 'value__in': paginated_destination_attribute_values}

filters = base.construct_attributes_filter('CUSTOMER', True, paginated_destination_attribute_values)

assert filters == {'attribute_type': 'CUSTOMER', 'workspace_id': 1, 'updated_at__gte': sync_after, 'value__in': paginated_destination_attribute_values}
assert filters == {'active': True, 'attribute_type': 'CUSTOMER', 'workspace_id': 1, 'updated_at__gte': sync_after, 'value__in': paginated_destination_attribute_values}


def test_expense_attributes_sync_after(db, create_temp_workspace, add_xero_credentials, create_project_mapping):
Expand Down
Loading