comdirect stringification
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
from src.models.comdirect import ComdirectGiro
|
||||
from tests.factories import ComdirectGiroFactory
|
||||
|
||||
|
||||
def test_comdirect_giro_basic_and_stringification():
|
||||
data = ComdirectGiroFactory.build()
|
||||
assert data
|
||||
assert isinstance(data, ComdirectGiro)
|
||||
orig_headers = data.get_orig_headers()
|
||||
assert orig_headers
|
||||
assert isinstance(orig_headers, str)
|
||||
header_list = orig_headers.split(";")
|
||||
assert len(header_list) > 0
|
||||
assert set(header_list) == {
|
||||
'"Wertstellung (Valuta)"',
|
||||
'"Umsatz in EUR"',
|
||||
'"Buchungstag"',
|
||||
'"Vorgang"',
|
||||
'"Buchungstext"',
|
||||
}
|
||||
orig_row = data.get_orig_row()
|
||||
assert orig_row
|
||||
assert isinstance(orig_row, str)
|
||||
assert len(orig_row.split(";")) > 0
|
||||
Reference in New Issue
Block a user