Skip to content
Permalink
Browse files
fix: add user
  • Loading branch information
subotic committed Jun 11, 2019
1 parent ffc00bc commit 277121bea1a386e429cf6826dd25e58468258c8a
Showing with 10 additions and 9 deletions.
  1. +1 −0 .gitignore
  2. +8 −8 knora/knora.py
  3. +1 −1 tests/test_knora.py
@@ -103,3 +103,4 @@ venv.bak/
# mypy
.mypy_cache/
.idea
.vscode
@@ -1229,35 +1229,35 @@ def create_schema(self, shortcode: str, shortname: str):
def reset_triplestore_content(self):
rdfdata = [
{
"path": "knora-ontologies/knora-admin.ttl",
"path": "./knora-ontologies/knora-admin.ttl",
"name": "http://www.knora.org/ontology/knora-admin"
},
{
"path": "knora-ontologies/knora-base.ttl",
"path": "./knora-ontologies/knora-base.ttl",
"name": "http://www.knora.org/ontology/knora-base"
},
{
"path": "knora-ontologies/standoff-onto.ttl",
"path": "./knora-ontologies/standoff-onto.ttl",
"name": "http://www.knora.org/ontology/standoff"
},
{
"path": "knora-ontologies/standoff-data.ttl",
"path": "./knora-ontologies/standoff-data.ttl",
"name": "http://www.knora.org/data/standoff"
},
{
"path": "knora-ontologies/salsah-gui.ttl",
"path": "./knora-ontologies/salsah-gui.ttl",
"name": "http://www.knora.org/ontology/salsah-gui"
},
{
"path": "_test_data/all_data/admin-data.ttl",
"path": "./_test_data/all_data/admin-data.ttl",
"name": "http://www.knora.org/data/admin"
},
{
"path": "_test_data/all_data/permissions-data.ttl",
"path": "./_test_data/all_data/permissions-data.ttl",
"name": "http://www.knora.org/data/permissions"
},
{
"path": "_test_data/all_data/system-data.ttl",
"path": "./_test_data/all_data/system-data.ttl",
"name": "http://www.knora.org/data/0000/SystemProject"
}
]
@@ -45,7 +45,7 @@ def test_create_user(con):
email=user["email"],
givenName=user["givenName"],
familyName=user["familyName"],
password="password",
password=user["password"],
lang=user["lang"] if user.get("lang") is not None else "en")

print(user_iri)

0 comments on commit 277121b

Please sign in to comment.