Skip to content

Commit

Permalink
chore: format and trigger tests
Browse files Browse the repository at this point in the history
Commiting this myself to allow workflows to run (first contribution
restriction)
  • Loading branch information
ankush committed May 12, 2023
1 parent c284ac7 commit 1eba131
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
1 change: 1 addition & 0 deletions ecommerce_integrations/unicommerce/delivery_note.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import frappe

from ecommerce_integrations.unicommerce.api_client import UnicommerceAPIClient
from ecommerce_integrations.unicommerce.constants import ORDER_CODE_FIELD, SETTINGS_DOCTYPE
from ecommerce_integrations.unicommerce.utils import create_unicommerce_log
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@
PACKAGE_TYPE_FIELD,
PRODUCT_CATEGORY_FIELD,
RETURN_CODE_FIELD,
SHIPPIND_ID,
SHIPPING_METHOD_FIELD,
SHIPPING_PACKAGE_CODE_FIELD,
SHIPPING_PACKAGE_STATUS_FIELD,
SHIPPING_PROVIDER_CODE,
TRACKING_CODE_FIELD,
SHIPPIND_ID,
)
from ecommerce_integrations.unicommerce.utils import create_unicommerce_log

Expand Down
2 changes: 1 addition & 1 deletion ecommerce_integrations/unicommerce/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
from ecommerce_integrations.unicommerce.constants import (
CHANNEL_ID_FIELD,
CHANNEL_TAX_ACCOUNT_FIELD_MAP,
INVOICE_CODE_FIELD,
FACILITY_CODE_FIELD,
INVOICE_CODE_FIELD,
IS_COD_CHECKBOX,
MODULE_NAME,
ORDER_CODE_FIELD,
Expand Down
13 changes: 6 additions & 7 deletions ecommerce_integrations/unicommerce/tests/test_delivery_note.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
import unittest
import base64
import responses
import unittest

import frappe
import responses
from erpnext.stock.doctype.stock_entry.stock_entry_utils import make_stock_entry

from ecommerce_integrations.unicommerce.constants import (
FACILITY_CODE_FIELD,
INVOICE_CODE_FIELD,
ORDER_CODE_FIELD,
SHIPPING_PACKAGE_CODE_FIELD,
)
from erpnext.stock.doctype.stock_entry.stock_entry_utils import make_stock_entry
from ecommerce_integrations.unicommerce.invoice import create_sales_invoice, bulk_generate_invoices
from ecommerce_integrations.unicommerce.delivery_note import create_delivery_note
from ecommerce_integrations.unicommerce.invoice import bulk_generate_invoices, create_sales_invoice
from ecommerce_integrations.unicommerce.order import create_order
from ecommerce_integrations.unicommerce.tests.test_client import TestCaseApiClient
from ecommerce_integrations.unicommerce.delivery_note import create_delivery_note


class TestDeliveryNote(TestCaseApiClient):
Expand All @@ -25,8 +26,6 @@ def test_create_invoice_and_delivery_note(self):
"""Use mocked invoice json to create and assert synced fields"""
from ecommerce_integrations.unicommerce import invoice

si_data = self.load_fixture("invoice-SDU0026")["invoice"]

# HACK to allow invoicing test
invoice.INVOICED_STATE.append("CREATED")
self.responses.add(
Expand Down

0 comments on commit 1eba131

Please sign in to comment.