Skip to content

Commit 9f304b7

Browse files
committed
reformat
1 parent 5583b29 commit 9f304b7

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

datanorm/datanorm_files.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
----------------------
44
The DatanormItem is updated by each file wrapper regarding to existing information in
55
the DatanormItem.
6+
7+
REFERENCE for technical details: https://docplayer.org/115761786-Technische-spezifikationen-der-datanorm-dateien-in-haufe-lexware.html # noqa: E501
68
"""
79

810
from abc import ABC

datanorm/datanorm_item.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
"""
22
A class that contains informations of a single DATANORM article
3+
4+
REFERENCE for technical details: https://docplayer.org/115761786-Technische-spezifikationen-der-datanorm-dateien-in-haufe-lexware.html # noqa: E501
35
"""
6+
47
import datetime
58
from decimal import Decimal
69
import re
710

8-
"""
9-
Source for technical details: https://docplayer.org/115761786-Technische-spezifikationen-der-datanorm-dateien-in-haufe-lexware.html # noqa: E501
10-
"""
11-
1211

1312
class DatanormItem:
1413
_MANUFACTURER_REGEX = r"^([A-Z|0-9|\'|-]{2,})\s"

tests/test_datanorm_files.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,7 @@ def test__search_file_for_id(self):
191191
"S": "S;;01;Installationsgeräte & -systeme;;;",
192192
"S_2": "S;;01;;12;Sicherungsautomaten & Hauptschalter;",
193193
}
194-
self.assertEqual(
195-
dut._search_file_for_group_ids("01", "12"), expected_result
196-
)
194+
self.assertEqual(dut._search_file_for_group_ids("01", "12"), expected_result)
197195
self.assertIsNone(dut._search_file_for_group_ids("04", "12"))
198196

199197
def test__search_file_for_id_nonexisting_file(self):
@@ -319,12 +317,10 @@ def test_parse_only_main_product_group(self):
319317
self.assertIsNone(di.product_group_name)
320318

321319
def test_file_name_is_valid(self):
322-
self.assertTrue(DatanormProductGroupFile(
323-
self.DATANORM_WRG_PATH).file_name_is_valid()
324-
)
325-
self.assertFalse(DatanormProductGroupFile(
326-
"Test.123").file_name_is_valid()
320+
self.assertTrue(
321+
DatanormProductGroupFile(self.DATANORM_WRG_PATH).file_name_is_valid()
327322
)
323+
self.assertFalse(DatanormProductGroupFile("Test.123").file_name_is_valid())
328324

329325

330326
class TestDatanormPriceFile(unittest.TestCase):

0 commit comments

Comments
 (0)