Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
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
RadioObservatory
LOFAR
Commits
ab19a716
Commit
ab19a716
authored
5 years ago
by
Jörn Künsemöller
Browse files
Options
Downloads
Patches
Plain Diff
TMSS-56
: remove wrong type conversion
parent
433def2e
No related branches found
No related tags found
1 merge request
!151
Resolve TMSS-56 and TMSS-61
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
LCS/PyCommon/json_utils.py
+0
-1
0 additions, 1 deletion
LCS/PyCommon/json_utils.py
SAS/TMSS/test/tmss_test_data_django_models.py
+1
-1
1 addition, 1 deletion
SAS/TMSS/test/tmss_test_data_django_models.py
with
1 addition
and
2 deletions
LCS/PyCommon/json_utils.py
+
0
−
1
View file @
ab19a716
...
...
@@ -79,5 +79,4 @@ def add_defaults_to_json_object_for_schema(json_object: dict, schema: str) -> di
'''
return a copy of the json object with defaults filled in accoring to the schema for all the missing properties
'''
copy_of_json_object
=
deepcopy
(
json_object
)
_DefaultValidatingDraft6Validator
(
schema
).
validate
(
copy_of_json_object
)
print
(
copy_of_json_object
)
return
copy_of_json_object
This diff is collapsed.
Click to expand it.
SAS/TMSS/test/tmss_test_data_django_models.py
+
1
−
1
View file @
ab19a716
...
...
@@ -179,7 +179,7 @@ def TaskBlueprint_test_data(name='my_task_blueprint', task_draft: models.TaskDra
return
{
"
name
"
:
name
,
"
description
"
:
""
,
"
tags
"
:
[],
"
specifications_doc
"
:
task_draft
.
specifications_doc
if
isinstance
(
task_draft
.
specifications_doc
,
str
)
else
json
.
dumps
(
task_draft
.
specifications_doc
)
,
"
specifications_doc
"
:
task_draft
.
specifications_doc
,
"
do_cancel
"
:
False
,
"
draft
"
:
task_draft
,
"
specifications_template
"
:
task_draft
.
specifications_template
,
...
...
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