|
29 | 29 | <script src="https://cdn\.jsdelivr\.net/npm/mathjax@3\.2\.2/es5/tex-svg\.js"></script>
|
30 | 30 | <script src="\S[^\n]*/kaleido_scopes\.js"></script>
|
31 | 31 | </head>
|
32 |
| - <body style="{margin: 0; padding: 0;}"><img id="kaleido-image"><img></body> |
| 32 | + <body style="{margin: 0; padding: 0;}"><img id="kaleido-image"></img></body> |
33 | 33 | </html>
|
34 | 34 | """) # noqa: E501 line too long
|
35 | 35 |
|
|
50 | 50 | <script src="https://cdn\.jsdelivr\.net/npm/mathjax@3\.2\.2/es5/tex-svg\.js"></script>
|
51 | 51 | <script src="\S[^\n]*/kaleido_scopes\.js"></script>
|
52 | 52 | </head>
|
53 |
| - <body style="{margin: 0; padding: 0;}"><img id="kaleido-image"><img></body> |
| 53 | + <body style="{margin: 0; padding: 0;}"><img id="kaleido-image"></img></body> |
54 | 54 | </html>
|
55 | 55 | """)
|
56 | 56 |
|
|
67 | 67 | MathJax\.Hub\.Config\({ "SVG": { blacker: 0 }}\)
|
68 | 68 | </script>
|
69 | 69 |
|
70 |
| - <script src="file:///with_plot" charset="utf-8"></script> |
| 70 | + <script src="https://with_plot" charset="utf-8"></script> |
71 | 71 | <script src="https://cdn\.jsdelivr\.net/npm/mathjax@3\.2\.2/es5/tex-svg\.js"></script>
|
72 | 72 | <script src="\S[^\n]*/kaleido_scopes\.js"></script>
|
73 | 73 | </head>
|
74 |
| - <body style="{margin: 0; padding: 0;}"><img id="kaleido-image"><img></body> |
| 74 | + <body style="{margin: 0; padding: 0;}"><img id="kaleido-image"></img></body> |
75 | 75 | </html>
|
76 | 76 | """)
|
77 | 77 |
|
|
88 | 88 | MathJax\.Hub\.Config\({ "SVG": { blacker: 0 }}\)
|
89 | 89 | </script>
|
90 | 90 |
|
91 |
| - <script src="file:///with_plot" charset="utf-8"></script> |
| 91 | + <script src="https://with_plot" charset="utf-8"></script> |
92 | 92 | <script src="\S[^\n]*/kaleido_scopes\.js"></script>
|
93 | 93 | </head>
|
94 |
| - <body style="{margin: 0; padding: 0;}"><img id="kaleido-image"><img></body> |
| 94 | + <body style="{margin: 0; padding: 0;}"><img id="kaleido-image"></img></body> |
95 | 95 | </html>
|
96 | 96 | """)
|
97 | 97 |
|
|
108 | 108 | MathJax\.Hub\.Config\({ "SVG": { blacker: 0 }}\)
|
109 | 109 | </script>
|
110 | 110 |
|
111 |
| - <script src="file:///with_plot" charset="utf-8"></script> |
112 |
| - <script src="file:///with_mathjax"></script> |
113 |
| - <script src="1"></script> |
114 |
| - <script src="2"></script> |
| 111 | + <script src="https://with_plot" charset="utf-8"></script> |
| 112 | + <script src="https://with_mathjax"></script> |
| 113 | + <script src="https://1"></script> |
| 114 | + <script src="https://2"></script> |
115 | 115 | <script src="\S[^\n]*/kaleido_scopes\.js"></script>
|
116 | 116 | </head>
|
117 |
| - <body style="{margin: 0; padding: 0;}"><img id="kaleido-image"><img></body> |
| 117 | + <body style="{margin: 0; padding: 0;}"><img id="kaleido-image"></img></body> |
118 | 118 | </html>
|
119 | 119 | """)
|
120 | 120 |
|
@@ -143,19 +143,19 @@ async def test_page_generator():
|
143 | 143 | all_defaults = PageGenerator().generate_index()
|
144 | 144 | assert all_defaults_re.findall(all_defaults)
|
145 | 145 |
|
146 |
| - with_plot = PageGenerator(plotly="file:///with_plot").generate_index() |
| 146 | + with_plot = PageGenerator(plotly="https://with_plot").generate_index() |
147 | 147 | assert with_plot_result_re.findall(with_plot)
|
148 | 148 |
|
149 | 149 | without_math = PageGenerator(
|
150 |
| - plotly="file:///with_plot", |
| 150 | + plotly="https://with_plot", |
151 | 151 | mathjax=False,
|
152 | 152 | ).generate_index()
|
153 | 153 | assert without_math_result_re.findall(without_math)
|
154 | 154 |
|
155 | 155 | with_others = PageGenerator(
|
156 |
| - plotly="file:///with_plot", |
157 |
| - mathjax="file:///with_mathjax", |
158 |
| - others=["1", "2"], |
| 156 | + plotly="https://with_plot", |
| 157 | + mathjax="https://with_mathjax", |
| 158 | + others=["https://1", "https://2"], |
159 | 159 | ).generate_index()
|
160 | 160 | assert with_others_result_re.findall(with_others)
|
161 | 161 |
|
|
0 commit comments