-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added unit test for vcell api get publications, fixed some python typing
- Loading branch information
Showing
7 changed files
with
103 additions
and
10 deletions.
There are no files selected for viewing
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
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
Empty file.
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,31 @@ | ||
from datetime import date | ||
|
||
from pyvcell.api.vcell_client import Configuration, ApiClient, PublicationResourceApi | ||
from pyvcell.api.vcell_client.models import Publication, BiomodelRef | ||
|
||
|
||
def test_get_publications() -> None: | ||
api_url: str = "https://vcell-dev.cam.uchc.edu" # vcell base url | ||
|
||
public_client = ApiClient(configuration=Configuration(host=api_url)) | ||
|
||
public_publication_api = PublicationResourceApi(public_client) | ||
pubs: list[Publication] = public_publication_api.get_publications() | ||
example_pub = Publication(pub_key=279906235, # type: ignore | ||
title='A continuum model of mechanosensation based on contractility kit assembly', | ||
authors=['Dolgitzer', ' D.', ' Plaza-Rodríguez', ' A. I.', ' Iglesias', ' M. A.', ' Jacob', ' M. A. C.', ' Todd', ' B.', ' Robinson', ' D. N.', ' & Iglesias', ' P. A.'], | ||
year=2024, | ||
citation='Biophys J. 2024 Nov 8:S0006-3495(24)00708-2', | ||
pubmedid='39521955', | ||
doi='https://doi.org/10.1016/j.bpj.2024.10.020', | ||
endnoteid=0, | ||
url='url', | ||
wittid=0, | ||
biomodel_refs=[BiomodelRef(bm_key=279851639, # type: ignore | ||
name='Dolgitzer 2025 A Continuum Model of Mechanosensation Based on Contractility Kit Assembly', | ||
owner_name='Dolgitzer', | ||
owner_key=259537152, | ||
version_flag=3)], | ||
mathmodel_refs=[], | ||
var_date=date(year=2024, month=11, day=26)) | ||
assert pubs[0] == example_pub |
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