Skip to content

Commit a7515b1

Browse files
committed
Merge remote-tracking branch 'origin/master' into fix/update-test-configuration
2 parents e77fe02 + 6a28485 commit a7515b1

File tree

8 files changed

+56
-22
lines changed

8 files changed

+56
-22
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Thanks for interested to contribute to TerminusDB Client, to get started, fork t
44

55
## Setting up dev environment 💻
66

7-
Make sure you have Python>=3.6 installed. We use [pipenv](https://pipenv-fork.readthedocs.io/en/latest/) for dev environment, to install pipenv:
7+
Make sure you have Python>=3.8 installed. We use [pipenv](https://pipenv-fork.readthedocs.io/en/latest/) for dev environment, to install pipenv:
88

99
`pip3 install pipenv --upgrade`
1010

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ graph all through a simple document API.
3333
## Requirements
3434

3535
- [TerminusDB v10.0](https://github.com/terminusdb/terminusdb-server)
36-
- [Python >=3.7](https://www.python.org/downloads)
36+
- [Python >=3.8](https://www.python.org/downloads)
3737

3838
## Release Notes and Previous Versions
3939

poetry.lock

Lines changed: 28 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

terminusdb_client/client/Client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1717,7 +1717,7 @@ def pull(
17171717
def fetch(self, remote_id: str,
17181718
remote_auth: Optional[dict] = None,
17191719
) -> dict:
1720-
"""Fatch the brach from a remote
1720+
"""Fetch the branch from a remote repo
17211721
17221722
Parameters
17231723
----------
@@ -2932,6 +2932,7 @@ def has_database(self, dbid: str, team: Optional[str] = None) -> bool:
29322932
f"{self.api}/db/{team}/{dbid}",
29332933
headers=self._default_headers,
29342934
auth=self._auth(),
2935+
allow_redirects=True,
29352936
)
29362937
return r.status_code == 200
29372938

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from terminusdb_client.scripts.scripts import tdbpy
2+
3+
if __name__ == '__main__':
4+
tdbpy()

terminusdb_client/tests/integration_tests/conftest.py

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ def docker_url_jwt(pytestconfig):
7979
pytestconfig.getoption("docker_compose")
8080
output = subprocess.run(
8181
[
82-
"docker-compose",
82+
"docker",
83+
"compose",
8384
"--file",
8485
os.path.dirname(os.path.realpath(__file__))
8586
+ "/test-docker-compose-jwt.yml",
@@ -98,7 +99,8 @@ def docker_url_jwt(pytestconfig):
9899
while not is_server_started:
99100
service = subprocess.run(
100101
[
101-
"docker-compose",
102+
"docker",
103+
"compose",
102104
"--file",
103105
os.path.dirname(os.path.realpath(__file__))
104106
+ "/test-docker-compose-jwt.yml",
@@ -159,7 +161,8 @@ def docker_url(pytestconfig):
159161
pytestconfig.getoption("docker_compose")
160162
output = subprocess.run(
161163
[
162-
"docker-compose",
164+
"docker",
165+
"compose",
163166
"--file",
164167
os.path.dirname(os.path.realpath(__file__)) + "/test-docker-compose.yml",
165168
"up",
@@ -177,7 +180,8 @@ def docker_url(pytestconfig):
177180
while not is_server_started:
178181
service = subprocess.run(
179182
[
180-
"docker-compose",
183+
"docker",
184+
"compose",
181185
"--file",
182186
os.path.dirname(os.path.realpath(__file__))
183187
+ "/test-docker-compose.yml",
@@ -214,7 +218,8 @@ def docker_url(pytestconfig):
214218
def clean_up_container():
215219
subprocess.run(
216220
[
217-
"docker-compose",
221+
"docker",
222+
"compose",
218223
"--file",
219224
os.path.dirname(os.path.realpath(__file__)) + "/test-docker-compose.yml",
220225
"down",
@@ -223,7 +228,8 @@ def clean_up_container():
223228
)
224229
subprocess.run(
225230
[
226-
"docker-compose",
231+
"docker",
232+
"compose",
227233
"--file",
228234
os.path.dirname(os.path.realpath(__file__)) + "/test-docker-compose.yml",
229235
"rm",
@@ -235,7 +241,8 @@ def clean_up_container():
235241
)
236242
subprocess.run(
237243
[
238-
"docker-compose",
244+
"docker",
245+
"compose",
239246
"--file",
240247
os.path.dirname(os.path.realpath(__file__))
241248
+ "/test-docker-compose-jwt.yml",
@@ -245,7 +252,8 @@ def clean_up_container():
245252
)
246253
subprocess.run(
247254
[
248-
"docker-compose",
255+
"docker",
256+
"compose",
249257
"--file",
250258
os.path.dirname(os.path.realpath(__file__))
251259
+ "/test-docker-compose-jwt.yml",
@@ -256,8 +264,8 @@ def clean_up_container():
256264
],
257265
check=True,
258266
)
259-
subprocess.run(["docker-compose", "down"])
260-
subprocess.run(["docker-compose", "rm", "--force", "--stop", "-v"])
267+
subprocess.run(["docker", "compose", "down"])
268+
subprocess.run(["docker", "compose", "rm", "--force", "--stop", "-v"])
261269

262270

263271
@pytest.fixture(scope="module")

terminusdb_client/tests/integration_tests/test-docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ services:
55
terminusdb-server:
66
image: terminusdb/terminusdb-server:dev
77
container_name: terminusdb-server
8+
pull_policy: always
89
hostname: terminusdb-server
910
tty: true
1011
ports:

terminusdb_client/woqlquery/woql_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ def removed_triple(self, sub, pred, obj, opt=False):
10161016
return self.opt().triple(sub, pred, obj)
10171017
if self._cursor.get("@type"):
10181018
self._wrap_cursor_with_and()
1019-
self._cursor["@type"] = "RemovedTriple"
1019+
self._cursor["@type"] = "DeletedTriple"
10201020
self._cursor["subject"] = self._clean_subject(sub)
10211021
self._cursor["predicate"] = self._clean_predicate(pred)
10221022
self._cursor["object"] = self._clean_object(obj)

0 commit comments

Comments
 (0)