-
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.
[FIX] manage cookie_jar and default values for header/footer
- Loading branch information
1 parent
8d838b7
commit 1a28914
Showing
9 changed files
with
80 additions
and
16 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 |
---|---|---|
@@ -1,6 +1,4 @@ | ||
import pytest | ||
|
||
from app.main import main, parse_args | ||
from app.main import parse_args | ||
|
||
|
||
class BaseClass: | ||
|
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 |
---|---|---|
@@ -1,6 +1,3 @@ | ||
import pytest | ||
|
||
from app.main import main, parse_args | ||
from base import BaseClass | ||
|
||
|
||
|
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 |
---|---|---|
@@ -1,6 +1,3 @@ | ||
import pytest | ||
|
||
from app.main import main, parse_args | ||
from base import BaseClass | ||
|
||
|
||
|
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,60 @@ | ||
import pytest | ||
|
||
from app.main import main, parse_args | ||
from base import BaseClass | ||
|
||
|
||
class TestClass3(BaseClass): | ||
args = [ | ||
"--disable-local-file-access", | ||
"--quiet", | ||
"--page-size", | ||
"A4", | ||
"--margin-top", | ||
"40.0", | ||
"--dpi", | ||
"90", | ||
"--zoom", | ||
"1.0666666666666667", | ||
"--header-spacing", | ||
"35", | ||
"--margin-left", | ||
"7.0", | ||
"--margin-bottom", | ||
"32.0", | ||
"--margin-right", | ||
"7.0", | ||
"--orientation", | ||
"Portrait", | ||
"--javascript-delay", | ||
"1000", | ||
"--cookie-jar", | ||
"test_3_cookie.txt", | ||
"--header-html", | ||
"/tmp/report.header.tmp.mhumnhzg.html", | ||
"--footer-html", | ||
"/tmp/report.footer.tmp.rgg3nfk0.html", | ||
"/tmp/report.body.tmp.0.2x3usqzz.html", | ||
"/tmp/output.pdf", | ||
] | ||
|
||
dict_args = { | ||
"disable-local-file-access": None, | ||
"quiet": None, | ||
"page-size": "A4", | ||
"margin-top": "40.0", | ||
"dpi": "90", | ||
"zoom": "1.0666666666666667", | ||
"header-spacing": "35", | ||
"margin-left": "7.0", | ||
"margin-bottom": "32.0", | ||
"margin-right": "7.0", | ||
"orientation": "Portrait", | ||
"javascript-delay": "1000", | ||
"header-html": "/tmp/report.header.tmp.mhumnhzg.html", | ||
"footer-html": "/tmp/report.footer.tmp.rgg3nfk0.html", | ||
"cookie": ["session_id", "af8671bxxxxxxxxxxxxxxxx"], | ||
} | ||
|
||
output = "/tmp/output.pdf" | ||
bodies = ["/tmp/report.body.tmp.0.2x3usqzz.html"] |
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 @@ | ||
session_id=af8671bxxxxxxxxxxxxxxxx; HttpOnly; domain=test.com; path=/; |