fix: use form URL for progress requests
This commit is contained in:
1 parent
e061c2b02d
commit
f558832cd2
5 files changed
+22
-5
No files matched your search
@@ -0,0 +1,15 @@
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def test_form_action_field_cannot_shadow_request_target():
|
||||
template = (
|
||||
Path(__file__).parents[1]
|
||||
/ "netbox_export"
|
||||
/ "templates"
|
||||
/ "netbox_export"
|
||||
/ "dashboard.html"
|
||||
).read_text(encoding="utf-8")
|
||||
|
||||
assert "form.getAttribute('action')" in template
|
||||
assert "exportForm.action" not in template
|
||||
assert "importForm.action" not in template
|
||||
Reference in new issue
Block a user