(query)
| 114 | |
| 115 | @pytest.mark.parametrize("query", TEST_QUERIES) |
| 116 | def test_default_read_access(query): |
| 117 | work_dir = tempfile.mkdtemp() |
| 118 | with GraphServer( |
| 119 | work_dir, config={"auth": {"public_key": PUB_KEY}} |
| 120 | ).start() as server: |
| 121 | port = server.port() |
| 122 | add_test_graph(port) |
| 123 | data = json.dumps({"query": query}) |
| 124 | |
| 125 | response = requests.post(raphtory_url(port), data=data) |
| 126 | assert response.status_code == 401 |
| 127 | |
| 128 | response = requests.post(raphtory_url(port), headers=READ_HEADERS, data=data) |
| 129 | assert_successful_response(response) |
| 130 | |
| 131 | response = requests.post(raphtory_url(port), headers=WRITE_HEADERS, data=data) |
| 132 | assert_successful_response(response) |
| 133 | |
| 134 | |
| 135 | @pytest.mark.parametrize("query", TEST_QUERIES) |
nothing calls this directly
no test coverage detected