Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Gitlab will go into maintenance Friday 3rd February from 9:00 to 10:00
Open sidebar
elixir
metadata-tools
Commits
e276fa00
Commit
e276fa00
authored
Nov 13, 2019
by
Pinar Alper
Browse files
test still not working but dataset schema syntax fixed
parent
f06642a4
Changes
2
Hide whitespace changes
Inline
Side-by-side
metadata_tools/resources/elu-dataset.json
View file @
e276fa00
...
...
@@ -191,6 +191,7 @@
}
}
}
}
...
...
tests/schemas/test_elx_schemas.py
View file @
e276fa00
...
...
@@ -15,15 +15,15 @@ class TestParser(TestCase):
dataFile
=
open
(
'data/datasets.json'
,
encoding
=
'utf-8'
)
schema
=
loads
(
schemaFile
.
read
())
#
data = loads(dataFile.read())
#
try:
#
validate(data, schema['schema'])
#
self.assert_(True)
#
except:
#
self.fail()
#
finally:
#
dataFile.close()
#
schemaFile.close()
data
=
loads
(
dataFile
.
read
())
try
:
validate
(
data
,
schema
[
'schema'
])
self
.
assert_
(
True
)
except
:
self
.
fail
()
finally
:
dataFile
.
close
()
schemaFile
.
close
()
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment