-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add functions to easily download template files, create new labels/re…
…ports, and update settings (#212) * Add functions to easily download template files, create new labels/reports, and update settings * Handle closing of files after upload * Clarify if statement * Add tests for creating and downloading report/label templates * Extend test to use save method, other methods of specifying template file. Fix template file location * Correct the order of arguments in isinstance * Compare contents of file, not names.. * Handle open files better * Put file comparison in function for easier maintenance * Make sure to close files also in create method * Rename variable for clarity * Change name of argument * Skip tests for ReportBuild method (due to inventree/InvenTree#6213) * That didn't work as expected... * Replace with assertIsInstance method * Again, not working
- Loading branch information
Showing
7 changed files
with
388 additions
and
18 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% extends "label/label_base.html" %} | ||
|
||
<pre>TEST LABEL</pre> | ||
|
||
{% endblock content %} |
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,5 @@ | ||
{% extends "label/label_base.html" %} | ||
|
||
<pre>TEST LABEL TWO</pre> | ||
|
||
{% endblock content %} |
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.