Skip to content

Commit f618e7f

Browse files
committed
Fix ruff lint errors in test file
1 parent 00eff5c commit f618e7f

1 file changed

Lines changed: 16 additions & 10 deletions

File tree

tests/test_imports.py

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,27 @@ def test_customs_client_importable():
1818

1919
def test_enums_importable():
2020
from rsge import (
21-
WayBillType,
22-
WayBillStatus,
23-
TransportationType,
24-
VATType,
21+
BusinessStatus,
2522
CategoryType,
26-
TransportCostPayer,
2723
ConfirmationStatus,
28-
BusinessStatus,
24+
TransportationType,
25+
TransportCostPayer,
26+
VATType,
27+
WayBillStatus,
28+
WayBillType,
2929
)
3030
assert WayBillType.TRANSPORTATION == 2
3131
assert WayBillStatus.ACTIVE == 1
32+
assert BusinessStatus.NONE == 0
33+
assert CategoryType.REGULAR == 0
34+
assert ConfirmationStatus.UNCONFIRMED == 0
35+
assert TransportationType.TRUCK == 1
36+
assert TransportCostPayer.BUYER == 1
37+
assert VATType.REGULAR == 0
3238

3339

3440
def test_models_importable():
35-
from rsge import WayBill, GoodsItem, WayBillSaveResult, CustomsDeclaration
41+
from rsge import CustomsDeclaration, GoodsItem, WayBill, WayBillSaveResult
3642
assert WayBill
3743
assert GoodsItem
3844
assert WayBillSaveResult
@@ -41,11 +47,11 @@ def test_models_importable():
4147

4248
def test_exceptions_importable():
4349
from rsge import (
44-
RSGeError,
45-
RSGeAuthenticationError,
46-
RSGeValidationError,
4750
RSGeAPIError,
51+
RSGeAuthenticationError,
4852
RSGeConnectionError,
53+
RSGeError,
54+
RSGeValidationError,
4955
)
5056
assert issubclass(RSGeAuthenticationError, RSGeError)
5157
assert issubclass(RSGeValidationError, RSGeError)

0 commit comments

Comments
 (0)