-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dataset images, json validation, tests
- Loading branch information
Showing
20 changed files
with
1,499 additions
and
599 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import os, json, localcosmos_server | ||
from localcosmos_server.tests.common import DataCreator | ||
lc_path = os.path.dirname(localcosmos_server.__file__) | ||
|
||
observation_form_json_path = os.path.join(lc_path, 'tests/data_for_tests/observation_form.json') | ||
|
||
def get_observation_form_example(): | ||
|
||
with open(observation_form_json_path, 'rb') as observation_form_file: | ||
observation_form = json.loads(observation_form_file.read()) | ||
|
||
return observation_form | ||
|
||
|
||
def get_dataset_data_example(): | ||
|
||
observation_form_json = get_observation_form_example() | ||
|
||
data_creator = DataCreator() | ||
|
||
data = data_creator(observation_form_json=observation_form_json) | ||
return data | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.