Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-pylib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-pylib
Commits
6a8b5ccf
Verified
Commit
6a8b5ccf
authored
3 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
REL: fix some license headers and Changelog
parent
7d83646c
No related branches found
No related tags found
1 merge request
!33
MAINT: change arguments of create_user
Pipeline
#15387
passed
3 years ago
Stage: code_style
Stage: linting
Stage: test
Stage: deploy
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+6
-5
6 additions, 5 deletions
CHANGELOG.md
unittests/test_schema.py
+22
-3
22 additions, 3 deletions
unittests/test_schema.py
unittests/test_yamlapi.py
+0
-3
0 additions, 3 deletions
unittests/test_yamlapi.py
with
28 additions
and
11 deletions
CHANGELOG.md
+
6
−
5
View file @
6a8b5ccf
...
...
@@ -9,10 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added ###
-
It is possible now to supply a password for caosdb_admin on the command line and also activate the user directly using "-c".
-
It is possible now to supply a password for caosdb_admin on the command line
and also activate the user directly using "-c".
*
Added examples for complex data models to documentation
*
extended apiutils with
`resolve_reference(Property)`
*
is_reference function for Properties
*
function
`retrieve_substructure`
that recursively adds connected entities.
### Changed ###
...
...
@@ -24,8 +26,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
*
Entity.add_property and Entity.add_parent do not accept
`**kwargs`
-style
keywords anymore. Formerly known keywords have been refactored into named
parameters.
*
[
#35
](
https://gitlab.com/caosdb/caosdb-pylib/-/issues/35
)
Loggers now use the
name of
the unit where they are called instead of a static name
*
[
#35
](
https://gitlab.com/caosdb/caosdb-pylib/-/issues/35
)
Loggers now use the
name of
the unit where they are called instead of a static name
### Deprecated ###
...
...
@@ -59,7 +61,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
*
`etag`
property for the
`caosdb.Query`
class. The etag allows to debug the
caching and to decide whether the server has changed between queries.
*
function
`_read_config_files`
to read
`pycaosdb.ini`
files from different paths.
*
function
`retrieve_substructure`
that recursively adds connected entities.
### Changed ###
...
...
This diff is collapsed.
Click to expand it.
unittests/test_schema.py
+
22
−
3
View file @
6a8b5ccf
#!/bin/python
# Test configuration schema
# A. Schlemmer, 01/2021
# -*- coding: utf-8 -*-
#
# This file is a part of the CaosDB Project.
#
# Copyright (C) 2021 Alexander Schlemmer
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
"""
Test configuration schema.
A. Schlemmer, 01/2021
"""
from
jsonschema.exceptions
import
ValidationError
from
pytest
import
raises
from
glob
import
glob
...
...
This diff is collapsed.
Click to expand it.
unittests/test_yamlapi.py
+
0
−
3
View file @
6a8b5ccf
# -*- coding: utf-8 -*-
#
# ** header v3.0
# This file is a part of the CaosDB Project.
#
# Copyright (C) 2021 IndiScale GmbH <info@indiscale.com>
...
...
@@ -19,8 +18,6 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
# ** end header
#
import
os
import
warnings
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment