File tree Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Original file line number Diff line number Diff line change 3
3
----------------------
4
4
The DatanormItem is updated by each file wrapper regarding to existing information in
5
5
the DatanormItem.
6
+
7
+ REFERENCE for technical details: https://docplayer.org/115761786-Technische-spezifikationen-der-datanorm-dateien-in-haufe-lexware.html # noqa: E501
6
8
"""
7
9
8
10
from abc import ABC
Original file line number Diff line number Diff line change 1
1
"""
2
2
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
3
5
"""
6
+
4
7
import datetime
5
8
from decimal import Decimal
6
9
import re
7
10
8
- """
9
- Source for technical details: https://docplayer.org/115761786-Technische-spezifikationen-der-datanorm-dateien-in-haufe-lexware.html # noqa: E501
10
- """
11
-
12
11
13
12
class DatanormItem :
14
13
_MANUFACTURER_REGEX = r"^([A-Z|0-9|\'|-]{2,})\s"
Original file line number Diff line number Diff line change @@ -191,9 +191,7 @@ def test__search_file_for_id(self):
191
191
"S" : "S;;01;Installationsgeräte & -systeme;;;" ,
192
192
"S_2" : "S;;01;;12;Sicherungsautomaten & Hauptschalter;" ,
193
193
}
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 )
197
195
self .assertIsNone (dut ._search_file_for_group_ids ("04" , "12" ))
198
196
199
197
def test__search_file_for_id_nonexisting_file (self ):
@@ -319,12 +317,10 @@ def test_parse_only_main_product_group(self):
319
317
self .assertIsNone (di .product_group_name )
320
318
321
319
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 ()
327
322
)
323
+ self .assertFalse (DatanormProductGroupFile ("Test.123" ).file_name_is_valid ())
328
324
329
325
330
326
class TestDatanormPriceFile (unittest .TestCase ):
You can’t perform that action at this time.
0 commit comments