-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Testing and implementation of report database query endpoints (#17)
* Moved validation docs outside functions to be parsed only once * Adding tests for change name, delete, list all and list by * Adding server calls for new report endpoints * Fixing report tests + implementation of list_all endpoint * Fixing list by test to better test functionality * Implementation of list_by endpoint * Fixes to change_name tests * Implementation of change name endpoint * Implementation of report/delete endpoint * Adding tests for check validity endpoint * Implementation of check validity endpoint * Small changes to bulk upload tests * Implementation of bulk upload passing tests * Updating tests to work with server * Initial implementation of bulk_export endpoint * Fixing file upload endpoint * Fixing bulk export implementation --------- Co-authored-by: Mohamad Mohamad <[email protected]>
- Loading branch information
1 parent
785f6ba
commit 1a04d61
Showing
22 changed files
with
401 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from lxml import etree | ||
from saxonche import PySaxonProcessor | ||
|
||
# Parse the XSD file | ||
XSD_SCHEMA = etree.XMLSchema(etree.parse("src/xsd/maindoc/UBL-Invoice-2.1.xsd", parser=None)) | ||
proc = PySaxonProcessor(license=False) | ||
xsltproc = proc.new_xslt30_processor() | ||
SYNTAX_EXECUTABLE = xsltproc.compile_stylesheet(stylesheet_file="src/validation_artefacts/AUNZ-UBL-validation.xslt") | ||
PEPPOL_EXECUTABLE = xsltproc.compile_stylesheet(stylesheet_file="src/validation_artefacts/AUNZ-PEPPOL-validation.xslt") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.