Skip to content

Commit

Permalink
b0f30a36b5375e3ca102808e3db740a18468a770
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Apr 9, 2024
1 parent 16d5791 commit 659f623
Show file tree
Hide file tree
Showing 72 changed files with 4,562 additions and 4 deletions.
66 changes: 66 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,70 @@ setup.cfg
setup.py
test-requirements.txt
test/__init__.py
test/test_annotation.py
test/test_annotation_list.py
test/test_annotation_post_body.py
test/test_annotation_return.py
test/test_annotation_update.py
test/test_annotation_update_all_of.py
test/test_annotations_api.py
test/test_compose_api.py
test/test_corrector.py
test/test_default_api.py
test/test_estimator.py
test/test_get_api.py
test/test_meta_analyses_api.py
test/test_meta_analyses_get400_response.py
test/test_meta_analysis.py
test/test_meta_analysis_annotation.py
test/test_meta_analysis_list.py
test/test_meta_analysis_post_body.py
test/test_meta_analysis_results.py
test/test_meta_analysis_return.py
test/test_meta_analysis_specification.py
test/test_meta_analysis_studyset.py
test/test_neurostore_analysis.py
test/test_neurostore_study.py
test/test_neurostore_study_list.py
test/test_neurostore_study_return.py
test/test_neurovault_api.py
test/test_neurovault_collection.py
test/test_neurovault_collection_files.py
test/test_neurovault_collection_return.py
test/test_neurovault_file.py
test/test_neurovault_file_list.py
test/test_neurovault_file_return.py
test/test_neurovault_list.py
test/test_post_api.py
test/test_project.py
test/test_project_list.py
test/test_project_meta_analyses.py
test/test_project_return.py
test/test_projects_api.py
test/test_put_api.py
test/test_read_only.py
test/test_result.py
test/test_result_init.py
test/test_result_list.py
test/test_result_list_results.py
test/test_result_return.py
test/test_specification.py
test/test_specification_conditions.py
test/test_specification_list.py
test/test_specification_post_body.py
test/test_specification_return.py
test/test_specifications_api.py
test/test_studyset.py
test/test_studyset_list.py
test/test_studyset_post_body.py
test/test_studyset_reference.py
test/test_studyset_reference_list.py
test/test_studyset_reference_return.py
test/test_studyset_reference_snapshots_inner.py
test/test_studyset_return.py
test/test_studysets_api.py
test/test_user.py
test/test_user_list.py
test/test_user_return.py
test/test_users_api.py
tox.ini
1 change: 1 addition & 0 deletions docs/Project.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Name | Type | Description | Notes
**public** | **bool** | whether the project is public or private | [optional]
**neurostore_study** | [**NeurostoreStudy**](NeurostoreStudy.md) | | [optional]
**neurostore_url** | **str** | | [optional]
**draft** | **bool** | | [optional] [readonly]

## Example

Expand Down
1 change: 1 addition & 0 deletions docs/ProjectReturn.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Name | Type | Description | Notes
**public** | **bool** | whether the project is public or private | [optional]
**neurostore_study** | [**NeurostoreStudy**](NeurostoreStudy.md) | | [optional]
**neurostore_url** | **str** | | [optional]
**draft** | **bool** | | [optional] [readonly]

## Example

Expand Down
7 changes: 5 additions & 2 deletions neurosynth_compose_sdk/models/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ class Project(BaseModel):
public: Optional[StrictBool] = Field(None, description="whether the project is public or private")
neurostore_study: Optional[NeurostoreStudy] = None
neurostore_url: Optional[StrictStr] = None
__properties = ["provenance", "meta_analyses", "name", "description", "public", "neurostore_study", "neurostore_url"]
draft: Optional[StrictBool] = None
__properties = ["provenance", "meta_analyses", "name", "description", "public", "neurostore_study", "neurostore_url", "draft"]

class Config:
"""Pydantic configuration"""
Expand All @@ -59,6 +60,7 @@ def to_dict(self):
"""Returns the dictionary representation of the model using alias"""
_dict = self.dict(by_alias=True,
exclude={
"draft",
},
exclude_none=True)
# override the default output from pydantic by calling `to_dict()` of meta_analyses
Expand Down Expand Up @@ -105,7 +107,8 @@ def from_dict(cls, obj: dict) -> Project:
"description": obj.get("description"),
"public": obj.get("public"),
"neurostore_study": NeurostoreStudy.from_dict(obj.get("neurostore_study")) if obj.get("neurostore_study") is not None else None,
"neurostore_url": obj.get("neurostore_url")
"neurostore_url": obj.get("neurostore_url"),
"draft": obj.get("draft")
})
return _obj

7 changes: 5 additions & 2 deletions neurosynth_compose_sdk/models/project_return.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ class ProjectReturn(BaseModel):
public: Optional[StrictBool] = Field(None, description="whether the project is public or private")
neurostore_study: Optional[NeurostoreStudy] = None
neurostore_url: Optional[StrictStr] = None
__properties = ["id", "updated_at", "created_at", "user", "username", "provenance", "meta_analyses", "name", "description", "public", "neurostore_study", "neurostore_url"]
draft: Optional[StrictBool] = None
__properties = ["id", "updated_at", "created_at", "user", "username", "provenance", "meta_analyses", "name", "description", "public", "neurostore_study", "neurostore_url", "draft"]

class Config:
"""Pydantic configuration"""
Expand All @@ -67,6 +68,7 @@ def to_dict(self):
"updated_at",
"created_at",
"username",
"draft",
},
exclude_none=True)
# override the default output from pydantic by calling `to_dict()` of meta_analyses
Expand Down Expand Up @@ -133,7 +135,8 @@ def from_dict(cls, obj: dict) -> ProjectReturn:
"description": obj.get("description"),
"public": obj.get("public"),
"neurostore_study": NeurostoreStudy.from_dict(obj.get("neurostore_study")) if obj.get("neurostore_study") is not None else None,
"neurostore_url": obj.get("neurostore_url")
"neurostore_url": obj.get("neurostore_url"),
"draft": obj.get("draft")
})
return _obj

Empty file added test/__init__.py
Empty file.
58 changes: 58 additions & 0 deletions test/test_annotation.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# coding: utf-8

"""
Analysis Specification for Meta-analysis
api to create a meta-analysis specification # noqa: E501
The version of the OpenAPI document: 1.0
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""


import unittest
import datetime

import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.annotation import Annotation # noqa: E501
from neurosynth_compose_sdk.rest import ApiException

class TestAnnotation(unittest.TestCase):
"""Annotation unit test stubs"""

def setUp(self):
pass

def tearDown(self):
pass

def make_instance(self, include_optional):
"""Test Annotation
include_option is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `Annotation`
"""
model = neurosynth_compose_sdk.models.annotation.Annotation() # noqa: E501
if include_optional :
return Annotation(
neurostore_id = '',
snapshot = None,
studyset = '',
neurostore_url = ''
)
else :
return Annotation(
)
"""

def testAnnotation(self):
"""Test Annotation"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)

if __name__ == '__main__':
unittest.main()
58 changes: 58 additions & 0 deletions test/test_annotation_list.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# coding: utf-8

"""
Analysis Specification for Meta-analysis
api to create a meta-analysis specification # noqa: E501
The version of the OpenAPI document: 1.0
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""


import unittest
import datetime

import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.annotation_list import AnnotationList # noqa: E501
from neurosynth_compose_sdk.rest import ApiException

class TestAnnotationList(unittest.TestCase):
"""AnnotationList unit test stubs"""

def setUp(self):
pass

def tearDown(self):
pass

def make_instance(self, include_optional):
"""Test AnnotationList
include_option is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `AnnotationList`
"""
model = neurosynth_compose_sdk.models.annotation_list.AnnotationList() # noqa: E501
if include_optional :
return AnnotationList(
results = [
null
],
metadata = neurosynth_compose_sdk.models.metadata.metadata()
)
else :
return AnnotationList(
)
"""

def testAnnotationList(self):
"""Test AnnotationList"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)

if __name__ == '__main__':
unittest.main()
60 changes: 60 additions & 0 deletions test/test_annotation_post_body.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# coding: utf-8

"""
Analysis Specification for Meta-analysis
api to create a meta-analysis specification # noqa: E501
The version of the OpenAPI document: 1.0
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""


import unittest
import datetime

import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.annotation_post_body import AnnotationPostBody # noqa: E501
from neurosynth_compose_sdk.rest import ApiException

class TestAnnotationPostBody(unittest.TestCase):
"""AnnotationPostBody unit test stubs"""

def setUp(self):
pass

def tearDown(self):
pass

def make_instance(self, include_optional):
"""Test AnnotationPostBody
include_option is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `AnnotationPostBody`
"""
model = neurosynth_compose_sdk.models.annotation_post_body.AnnotationPostBody() # noqa: E501
if include_optional :
return AnnotationPostBody(
cached_studyset_id = '',
neurostore_id = '',
snapshot = neurosynth_compose_sdk.models.snapshot.snapshot(),
studyset = '',
neurostore_url = ''
)
else :
return AnnotationPostBody(
cached_studyset_id = '',
)
"""

def testAnnotationPostBody(self):
"""Test AnnotationPostBody"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)

if __name__ == '__main__':
unittest.main()
63 changes: 63 additions & 0 deletions test/test_annotation_return.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# coding: utf-8

"""
Analysis Specification for Meta-analysis
api to create a meta-analysis specification # noqa: E501
The version of the OpenAPI document: 1.0
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""


import unittest
import datetime

import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.annotation_return import AnnotationReturn # noqa: E501
from neurosynth_compose_sdk.rest import ApiException

class TestAnnotationReturn(unittest.TestCase):
"""AnnotationReturn unit test stubs"""

def setUp(self):
pass

def tearDown(self):
pass

def make_instance(self, include_optional):
"""Test AnnotationReturn
include_option is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `AnnotationReturn`
"""
model = neurosynth_compose_sdk.models.annotation_return.AnnotationReturn() # noqa: E501
if include_optional :
return AnnotationReturn(
neurostore_id = '',
snapshot = neurosynth_compose_sdk.models.snapshot.snapshot(),
studyset = '',
neurostore_url = '',
id = '',
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
user = '',
username = ''
)
else :
return AnnotationReturn(
)
"""

def testAnnotationReturn(self):
"""Test AnnotationReturn"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)

if __name__ == '__main__':
unittest.main()
Loading

0 comments on commit 659f623

Please sign in to comment.