Skip to content

Commit

Permalink
Update test_api.py 00001
Browse files Browse the repository at this point in the history
  • Loading branch information
gitofanindya authored Oct 26, 2023
1 parent 73b744c commit ed2435c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/functional/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

from nxdrive.gui.api import QMLDriveApi
from nxdrive.gui.application import Application
from tests.conftest import nuxeo_url


def test_web_authentication(manager_factory):
def test_web_authentication(manager_factory, nuxeo_url):
manager, engine = manager_factory()

def func(val):
Expand All @@ -16,9 +15,8 @@ def func(val):

with manager:
with patch.object(manager, "check_local_folder_available", new=func):
url = nuxeo_url()
returned_val = drive_api.web_authentication(
url + "/login.jsp?requestedUrl=ui%2F",
nuxeo_url + "/login.jsp?requestedUrl=ui%2F",
"/dummy-path",
True,
)
Expand Down

0 comments on commit ed2435c

Please sign in to comment.