Skip to content

Commit

Permalink
Run black
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelm committed Jan 22, 2025
1 parent 7753f0b commit a6b98f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 1 addition & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ def invoice_document(request):
doc.trade.agreement.seller.address.country_id = "DE"
doc.trade.agreement.seller.address.country_subdivision = "Bayern"
doc.trade.agreement.seller.tax_registrations.add(
TaxRegistration(
id=("VA", "DE000000000")
)
TaxRegistration(id=("VA", "DE000000000"))
)

doc.trade.agreement.seller_order.issue_date_time = datetime.now(timezone.utc)
Expand Down
9 changes: 6 additions & 3 deletions tests/test_minimal.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,11 @@ def test_unused_name_spaces_included(invoice_document):
"urn:cen.eu:en16932:2017#conformant#urn:factur-x.eu:1p0:wrong"
)
xml = doc.serialize(schema="FACTUR-X_EXTENDED")
assert 'xmlns:qdt="urn:un:unece:uncefact:data:standard:QualifiedDataType:100"' in xml.decode()
assert (
'xmlns:qdt="urn:un:unece:uncefact:data:standard:QualifiedDataType:100"'
in xml.decode()
)
assert 'xmlns:xs="http://www.w3.org/2001/XMLSchema"' in xml.decode()
assert 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"' in xml.decode()
assert 'xs:' not in xml.decode()
assert 'xsi:' not in xml.decode()
assert "xs:" not in xml.decode()
assert "xsi:" not in xml.decode()

0 comments on commit a6b98f6

Please sign in to comment.