|
36 | 36 | AUTH_TOKEN = basic_auth(TEST_USER, TEST_PASSWORD)
|
37 | 37 |
|
38 | 38 |
|
39 |
| -class BasicAuthTestCase(ServerTestCase): |
40 |
| - |
41 |
| - def test_can_provide_realm_with_basic_auth_token(self): |
42 |
| - token = basic_auth(TEST_USER, TEST_PASSWORD, "native") |
43 |
| - with GraphDatabase.driver(BOLT_URI, auth=token) as driver: |
44 |
| - with driver.session() as session: |
45 |
| - result = session.run("RETURN 1").consume() |
46 |
| - assert result is not None |
47 |
| - |
48 |
| - |
49 |
| -class CustomAuthTestCase(ServerTestCase): |
50 |
| - |
51 |
| - def test_can_create_custom_auth_token(self): |
52 |
| - token = custom_auth(TEST_USER, TEST_PASSWORD, "native", "basic") |
53 |
| - with GraphDatabase.driver(BOLT_URI, auth=token) as driver: |
54 |
| - with driver.session() as session: |
55 |
| - result = session.run("RETURN 1").consume() |
56 |
| - assert result is not None |
57 |
| - |
58 |
| - def test_can_create_custom_auth_token_with_additional_parameters(self): |
59 |
| - token = custom_auth(TEST_USER, TEST_PASSWORD, "native", "basic", secret=42) |
60 |
| - with GraphDatabase.driver(BOLT_URI, auth=token) as driver: |
61 |
| - with driver.session() as session: |
62 |
| - result = session.run("RETURN 1").consume() |
63 |
| - assert result is not None |
| 39 | +# class BasicAuthTestCase(ServerTestCase): |
| 40 | +# |
| 41 | +# def test_can_provide_realm_with_basic_auth_token(self): |
| 42 | +# token = basic_auth(TEST_USER, TEST_PASSWORD, "native") |
| 43 | +# with GraphDatabase.driver(BOLT_URI, auth=token) as driver: |
| 44 | +# with driver.session() as session: |
| 45 | +# result = session.run("RETURN 1").consume() |
| 46 | +# assert result is not None |
| 47 | +# |
| 48 | +# |
| 49 | +# class CustomAuthTestCase(ServerTestCase): |
| 50 | +# |
| 51 | +# def test_can_create_custom_auth_token(self): |
| 52 | +# token = custom_auth(TEST_USER, TEST_PASSWORD, "native", "basic") |
| 53 | +# with GraphDatabase.driver(BOLT_URI, auth=token) as driver: |
| 54 | +# with driver.session() as session: |
| 55 | +# result = session.run("RETURN 1").consume() |
| 56 | +# assert result is not None |
| 57 | +# |
| 58 | +# def test_can_create_custom_auth_token_with_additional_parameters(self): |
| 59 | +# token = custom_auth(TEST_USER, TEST_PASSWORD, "native", "basic", secret=42) |
| 60 | +# with GraphDatabase.driver(BOLT_URI, auth=token) as driver: |
| 61 | +# with driver.session() as session: |
| 62 | +# result = session.run("RETURN 1").consume() |
| 63 | +# assert result is not None |
64 | 64 |
|
65 | 65 |
|
66 | 66 | class DriverTestCase(ServerTestCase):
|
|
0 commit comments