Buckets:
AnonymousSpottedToad/human_verified_bucket / codebase /python /aspuru-guzik-group_molar /tests /client /conftest.py
| # std | |
| import os | |
| from time import sleep | |
| # external | |
| import pytest | |
| # molar | |
| from molar import Client, ClientConfig | |
| def client_factory(database_name="main"): | |
| cfg = ClientConfig( | |
| server_url=os.getenv("SERVER_HOST") or "http://localhost:", | |
| api_prefix=os.getenv("API_PATH") or "/api/v1", | |
| database_name=database_name, | |
| email="test@molar.tooth", | |
| password="tooth", | |
| ) | |
| return Client(cfg) | |
| def client(): | |
| return client_factory() | |
| def new_database_client(): | |
| return client_factory("new_database") | |
| def new_database(client): | |
| out = client.database_creation_request("new_database", ["compchem@head"]) | |
| assert out["msg"] == "Database request created" | |
| out = client.approve_database("new_database") | |
| df = client.get_database_requests() | |
| assert len(df) == 1 | |
| yield df | |
| client.remove_database("new_database") | |
| df = client.get_database_requests() | |
| assert len(df) == 0 | |
Xet Storage Details
- Size:
- 1.03 kB
- Xet hash:
- 441790e54cb3a786df1a83bfee8a62cc5457986e0fbc0e2fa8740e5f1b18331d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.