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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-pylib
Merge requests
!33
MAINT: change arguments of create_user
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
MAINT: change arguments of create_user
release-v0.6.0
into
main
Overview
0
Commits
114
Pipelines
3
Changes
3
Merged
Timm Fitschen
requested to merge
release-v0.6.0
into
main
3 years ago
Overview
0
Commits
114
Pipelines
3
Changes
3
Expand
0
0
Merge request reports
Viewing commit
6a8b5ccf
Prev
Next
Show latest version
3 files
+
28
−
11
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
Verified
6a8b5ccf
REL: fix some license headers and Changelog
· 6a8b5ccf
Timm Fitschen
authored
3 years ago
unittests/test_schema.py
+
22
−
3
Options
#!/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
Loading