tests: fix rootdirectory tests so they can be run independantly
This commit is contained in:
parent
c4c18459eb
commit
64776c3cbf
|
@ -4,7 +4,7 @@ import shutil
|
|||
import pytest
|
||||
|
||||
from quixote import cleanup
|
||||
from qommon import errors, sessions
|
||||
from wcs.qommon import sessions
|
||||
from wcs import formdef
|
||||
from wcs.qommon.http_request import HTTPRequest
|
||||
from wcs.formdef import FormDef
|
||||
|
@ -82,7 +82,7 @@ def test_private_site_anonymous_access():
|
|||
formdef1.roles = formdef2.roles = ['role-1']
|
||||
formdef1.store()
|
||||
formdef2.store()
|
||||
with pytest.raises(errors.AccessUnauthorizedError):
|
||||
with pytest.raises(wcs.forms.root.errors.AccessUnauthorizedError):
|
||||
output = indexhtml()
|
||||
|
||||
def test_semi_private_site_anonymous_access():
|
||||
|
@ -110,7 +110,7 @@ def test_private_site_unauthorized_access():
|
|||
formdef1.roles = formdef2.roles = ['role-1']
|
||||
formdef1.store()
|
||||
formdef2.store()
|
||||
with pytest.raises(errors.AccessUnauthorizedError):
|
||||
with pytest.raises(wcs.forms.root.errors.AccessUnauthorizedError):
|
||||
output = indexhtml(user2)
|
||||
|
||||
def test_private_site_semi_authorized_access():
|
||||
|
|
Loading…
Reference in New Issue