mirror of
https://github.com/logos-storage/logos-storage-py-api-client.git
synced 2026-01-02 05:23:08 +00:00
test: regenerate tests
This commit is contained in:
parent
613f8c2799
commit
1c464aa6ad
2
.github/workflows/python.yml
vendored
2
.github/workflows/python.yml
vendored
@ -13,7 +13,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
|
||||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
@ -66,4 +66,29 @@ setup.cfg
|
||||
setup.py
|
||||
test-requirements.txt
|
||||
test/__init__.py
|
||||
test/test_codex_version.py
|
||||
test/test_content.py
|
||||
test/test_data_api.py
|
||||
test/test_data_item.py
|
||||
test/test_data_list.py
|
||||
test/test_debug_api.py
|
||||
test/test_debug_info.py
|
||||
test/test_manifest_item.py
|
||||
test/test_marketplace_api.py
|
||||
test/test_node.py
|
||||
test/test_node_api.py
|
||||
test/test_peer_id_read.py
|
||||
test/test_peers_table.py
|
||||
test/test_purchase.py
|
||||
test/test_reservation.py
|
||||
test/test_sales_availability.py
|
||||
test/test_sales_availability_create.py
|
||||
test/test_sales_availability_read.py
|
||||
test/test_slot.py
|
||||
test/test_slot_agent.py
|
||||
test/test_space.py
|
||||
test/test_spr_read.py
|
||||
test/test_storage_ask.py
|
||||
test/test_storage_request.py
|
||||
test/test_storage_request_creation.py
|
||||
tox.ini
|
||||
|
||||
@ -4,7 +4,7 @@ List of endpoints and interfaces available to Codex API users
|
||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||
|
||||
- API version: 0.0.1
|
||||
- Package version: 0.1.0
|
||||
- Package version: 0.0.1
|
||||
- Generator version: 7.8.0
|
||||
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
||||
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
__version__ = "0.1.0"
|
||||
__version__ = "0.0.1"
|
||||
|
||||
# import apis into sdk package
|
||||
from codex_api_client.api.data_api import DataApi
|
||||
|
||||
@ -384,7 +384,7 @@ class Configuration:
|
||||
"OS: {env}\n"\
|
||||
"Python Version: {pyversion}\n"\
|
||||
"Version of the API: 0.0.1\n"\
|
||||
"SDK Package Version: 0.1.0".\
|
||||
"SDK Package Version: 0.0.1".\
|
||||
format(env=sys.platform, pyversion=sys.version)
|
||||
|
||||
def get_host_settings(self):
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "codex_api_client"
|
||||
version = "0.1.0"
|
||||
version = "0.0.1"
|
||||
description = "Codex API"
|
||||
authors = ["OpenAPI Generator Community <team@openapitools.org>"]
|
||||
license = "NoLicense"
|
||||
|
||||
2
setup.py
2
setup.py
@ -21,7 +21,7 @@ from setuptools import setup, find_packages # noqa: H301
|
||||
# prerequisite: setuptools
|
||||
# http://pypi.python.org/pypi/setuptools
|
||||
NAME = "Codex API Client"
|
||||
VERSION = "0.1.0"
|
||||
VERSION = "0.0.1"
|
||||
PYTHON_REQUIRES = ">=3.7"
|
||||
REQUIRES = [
|
||||
"urllib3 >= 1.25.3, < 2.1.0",
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
import unittest
|
||||
|
||||
from codex_client.models.content import Content
|
||||
from codex_api_client.models.content import Content
|
||||
|
||||
class TestContent(unittest.TestCase):
|
||||
"""Content unit test stubs"""
|
||||
@ -35,13 +35,7 @@ class TestContent(unittest.TestCase):
|
||||
model = Content()
|
||||
if include_optional:
|
||||
return Content(
|
||||
cid = 'QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N',
|
||||
erasure = codex_client.models.erasure_parameters.ErasureParameters(
|
||||
total_chunks = 56, ),
|
||||
por = codex_client.models.po_r_parameters.PoRParameters(
|
||||
u = '',
|
||||
public_key = '',
|
||||
name = '', )
|
||||
cid = 'QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N'
|
||||
)
|
||||
else:
|
||||
return Content(
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
import unittest
|
||||
|
||||
from codex_client.api.data_api import DataApi
|
||||
from codex_api_client.api.data_api import DataApi
|
||||
|
||||
|
||||
class TestDataApi(unittest.TestCase):
|
||||
@ -36,6 +36,20 @@ class TestDataApi(unittest.TestCase):
|
||||
def test_download_network(self) -> None:
|
||||
"""Test case for download_network
|
||||
|
||||
Download a file from the network to the local node if it's not available locally. Note: Download is performed async. Call can return before download is completed.
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_download_network_manifest(self) -> None:
|
||||
"""Test case for download_network_manifest
|
||||
|
||||
Download only the dataset manifest from the network to the local node if it's not available locally.
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_download_network_stream(self) -> None:
|
||||
"""Test case for download_network_stream
|
||||
|
||||
Download a file from the network in a streaming manner. If the file is not available locally, it will be retrieved from other nodes in the network if able.
|
||||
"""
|
||||
pass
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
import unittest
|
||||
|
||||
from codex_client.models.data_item import DataItem
|
||||
from codex_api_client.models.data_item import DataItem
|
||||
|
||||
class TestDataItem(unittest.TestCase):
|
||||
"""DataItem unit test stubs"""
|
||||
@ -36,11 +36,14 @@ class TestDataItem(unittest.TestCase):
|
||||
if include_optional:
|
||||
return DataItem(
|
||||
cid = 'QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N',
|
||||
manifest = codex_client.models.manifest_item.ManifestItem(
|
||||
root_hash = 'QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N',
|
||||
original_bytes = 56,
|
||||
manifest = codex_api_client.models.manifest_item.ManifestItem(
|
||||
tree_cid = 'QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N',
|
||||
dataset_size = 56,
|
||||
block_size = 56,
|
||||
protected = True, )
|
||||
protected = True,
|
||||
filename = 'codex.png',
|
||||
mimetype = 'image/png',
|
||||
uploaded_at = 1729244192, )
|
||||
)
|
||||
else:
|
||||
return DataItem(
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
import unittest
|
||||
|
||||
from codex_client.models.data_list import DataList
|
||||
from codex_api_client.models.data_list import DataList
|
||||
|
||||
class TestDataList(unittest.TestCase):
|
||||
"""DataList unit test stubs"""
|
||||
@ -36,13 +36,16 @@ class TestDataList(unittest.TestCase):
|
||||
if include_optional:
|
||||
return DataList(
|
||||
content = [
|
||||
codex_client.models.data_item.DataItem(
|
||||
codex_api_client.models.data_item.DataItem(
|
||||
cid = 'QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N',
|
||||
manifest = codex_client.models.manifest_item.ManifestItem(
|
||||
root_hash = 'QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N',
|
||||
original_bytes = 56,
|
||||
manifest = codex_api_client.models.manifest_item.ManifestItem(
|
||||
tree_cid = 'QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N',
|
||||
dataset_size = 56,
|
||||
block_size = 56,
|
||||
protected = True, ), )
|
||||
protected = True,
|
||||
filename = 'codex.png',
|
||||
mimetype = 'image/png',
|
||||
uploaded_at = 1729244192, ), )
|
||||
]
|
||||
)
|
||||
else:
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
import unittest
|
||||
|
||||
from codex_client.api.debug_api import DebugApi
|
||||
from codex_api_client.api.debug_api import DebugApi
|
||||
|
||||
|
||||
class TestDebugApi(unittest.TestCase):
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
import unittest
|
||||
|
||||
from codex_client.models.debug_info import DebugInfo
|
||||
from codex_api_client.models.debug_info import DebugInfo
|
||||
|
||||
class TestDebugInfo(unittest.TestCase):
|
||||
"""DebugInfo unit test stubs"""
|
||||
@ -40,7 +40,25 @@ class TestDebugInfo(unittest.TestCase):
|
||||
'/ip4/127.0.0.1/tcp/8080'
|
||||
],
|
||||
repo = '',
|
||||
spr = ''
|
||||
spr = '',
|
||||
table = codex_api_client.models.peers_table.PeersTable(
|
||||
local_node = codex_api_client.models.node.Node(
|
||||
node_id = '',
|
||||
peer_id = '',
|
||||
record = '',
|
||||
address = '',
|
||||
seen = True, ),
|
||||
nodes = [
|
||||
codex_api_client.models.node.Node(
|
||||
node_id = '',
|
||||
peer_id = '',
|
||||
record = '',
|
||||
address = '',
|
||||
seen = True, )
|
||||
], ),
|
||||
codex = codex_api_client.models.codex_version.CodexVersion(
|
||||
version = 'v0.1.7',
|
||||
revision = '0c647d8', )
|
||||
)
|
||||
else:
|
||||
return DebugInfo(
|
||||
|
||||
@ -1,51 +0,0 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Codex API
|
||||
|
||||
List of endpoints and interfaces available to Codex API users
|
||||
|
||||
The version of the OpenAPI document: 0.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
|
||||
from codex_client.models.erasure_parameters import ErasureParameters
|
||||
|
||||
class TestErasureParameters(unittest.TestCase):
|
||||
"""ErasureParameters unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional) -> ErasureParameters:
|
||||
"""Test ErasureParameters
|
||||
include_optional 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 `ErasureParameters`
|
||||
"""
|
||||
model = ErasureParameters()
|
||||
if include_optional:
|
||||
return ErasureParameters(
|
||||
total_chunks = 56
|
||||
)
|
||||
else:
|
||||
return ErasureParameters(
|
||||
)
|
||||
"""
|
||||
|
||||
def testErasureParameters(self):
|
||||
"""Test ErasureParameters"""
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
import unittest
|
||||
|
||||
from codex_client.models.manifest_item import ManifestItem
|
||||
from codex_api_client.models.manifest_item import ManifestItem
|
||||
|
||||
class TestManifestItem(unittest.TestCase):
|
||||
"""ManifestItem unit test stubs"""
|
||||
@ -35,10 +35,13 @@ class TestManifestItem(unittest.TestCase):
|
||||
model = ManifestItem()
|
||||
if include_optional:
|
||||
return ManifestItem(
|
||||
root_hash = 'QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N',
|
||||
original_bytes = 56,
|
||||
tree_cid = 'QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N',
|
||||
dataset_size = 56,
|
||||
block_size = 56,
|
||||
protected = True
|
||||
protected = True,
|
||||
filename = 'codex.png',
|
||||
mimetype = 'image/png',
|
||||
uploaded_at = 1729244192
|
||||
)
|
||||
else:
|
||||
return ManifestItem(
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
import unittest
|
||||
|
||||
from codex_client.api.marketplace_api import MarketplaceApi
|
||||
from codex_api_client.api.marketplace_api import MarketplaceApi
|
||||
|
||||
|
||||
class TestMarketplaceApi(unittest.TestCase):
|
||||
@ -47,8 +47,8 @@ class TestMarketplaceApi(unittest.TestCase):
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_offered_storage(self) -> None:
|
||||
"""Test case for get_offered_storage
|
||||
def test_get_availabilities(self) -> None:
|
||||
"""Test case for get_availabilities
|
||||
|
||||
Returns storage that is for sale
|
||||
"""
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
import unittest
|
||||
|
||||
from codex_client.api.node_api import NodeApi
|
||||
from codex_api_client.api.node_api import NodeApi
|
||||
|
||||
|
||||
class TestNodeApi(unittest.TestCase):
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
import unittest
|
||||
|
||||
from codex_client.models.peer_id_read import PeerIdRead
|
||||
from codex_api_client.models.peer_id_read import PeerIdRead
|
||||
|
||||
class TestPeerIdRead(unittest.TestCase):
|
||||
"""PeerIdRead unit test stubs"""
|
||||
|
||||
@ -1,53 +0,0 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Codex API
|
||||
|
||||
List of endpoints and interfaces available to Codex API users
|
||||
|
||||
The version of the OpenAPI document: 0.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
|
||||
from codex_client.models.po_r_parameters import PoRParameters
|
||||
|
||||
class TestPoRParameters(unittest.TestCase):
|
||||
"""PoRParameters unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional) -> PoRParameters:
|
||||
"""Test PoRParameters
|
||||
include_optional 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 `PoRParameters`
|
||||
"""
|
||||
model = PoRParameters()
|
||||
if include_optional:
|
||||
return PoRParameters(
|
||||
u = '',
|
||||
public_key = '',
|
||||
name = ''
|
||||
)
|
||||
else:
|
||||
return PoRParameters(
|
||||
)
|
||||
"""
|
||||
|
||||
def testPoRParameters(self):
|
||||
"""Test PoRParameters"""
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
import unittest
|
||||
|
||||
from codex_client.models.purchase import Purchase
|
||||
from codex_api_client.models.purchase import Purchase
|
||||
|
||||
class TestPurchase(unittest.TestCase):
|
||||
"""Purchase unit test stubs"""
|
||||
@ -35,26 +35,20 @@ class TestPurchase(unittest.TestCase):
|
||||
model = Purchase()
|
||||
if include_optional:
|
||||
return Purchase(
|
||||
state = '',
|
||||
state = 'cancelled',
|
||||
error = '',
|
||||
request = codex_client.models.storage_request.StorageRequest(
|
||||
request = codex_api_client.models.storage_request.StorageRequest(
|
||||
id = '',
|
||||
client = '',
|
||||
ask = codex_client.models.storage_ask.StorageAsk(
|
||||
ask = codex_api_client.models.storage_ask.StorageAsk(
|
||||
slots = 56,
|
||||
slot_size = '',
|
||||
duration = '',
|
||||
proof_probability = '',
|
||||
reward = '',
|
||||
max_slot_loss = 56, ),
|
||||
content = codex_client.models.content.Content(
|
||||
cid = 'QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N',
|
||||
erasure = codex_client.models.erasure_parameters.ErasureParameters(
|
||||
total_chunks = 56, ),
|
||||
por = codex_client.models.po_r_parameters.PoRParameters(
|
||||
u = '',
|
||||
public_key = '',
|
||||
name = '', ), ),
|
||||
content = codex_api_client.models.content.Content(
|
||||
cid = 'QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N', ),
|
||||
expiry = '10 minutes',
|
||||
nonce = '', )
|
||||
)
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
import unittest
|
||||
|
||||
from codex_client.models.reservation import Reservation
|
||||
from codex_api_client.models.reservation import Reservation
|
||||
|
||||
class TestReservation(unittest.TestCase):
|
||||
"""Reservation unit test stubs"""
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
import unittest
|
||||
|
||||
from codex_client.models.sales_availability import SalesAvailability
|
||||
from codex_api_client.models.sales_availability import SalesAvailability
|
||||
|
||||
class TestSalesAvailability(unittest.TestCase):
|
||||
"""SalesAvailability unit test stubs"""
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
import unittest
|
||||
|
||||
from codex_client.models.sales_availability_create import SalesAvailabilityCREATE
|
||||
from codex_api_client.models.sales_availability_create import SalesAvailabilityCREATE
|
||||
|
||||
class TestSalesAvailabilityCREATE(unittest.TestCase):
|
||||
"""SalesAvailabilityCREATE unit test stubs"""
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
import unittest
|
||||
|
||||
from codex_client.models.sales_availability_read import SalesAvailabilityREAD
|
||||
from codex_api_client.models.sales_availability_read import SalesAvailabilityREAD
|
||||
|
||||
class TestSalesAvailabilityREAD(unittest.TestCase):
|
||||
"""SalesAvailabilityREAD unit test stubs"""
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
import unittest
|
||||
|
||||
from codex_client.models.slot import Slot
|
||||
from codex_api_client.models.slot import Slot
|
||||
|
||||
class TestSlot(unittest.TestCase):
|
||||
"""Slot unit test stubs"""
|
||||
@ -36,24 +36,18 @@ class TestSlot(unittest.TestCase):
|
||||
if include_optional:
|
||||
return Slot(
|
||||
id = '268a781e0db3f7cf36b18e5f4fdb7f586ec9edd08e5500b17c0e518a769f114a',
|
||||
request = codex_client.models.storage_request.StorageRequest(
|
||||
request = codex_api_client.models.storage_request.StorageRequest(
|
||||
id = '',
|
||||
client = '',
|
||||
ask = codex_client.models.storage_ask.StorageAsk(
|
||||
ask = codex_api_client.models.storage_ask.StorageAsk(
|
||||
slots = 56,
|
||||
slot_size = '',
|
||||
duration = '',
|
||||
proof_probability = '',
|
||||
reward = '',
|
||||
max_slot_loss = 56, ),
|
||||
content = codex_client.models.content.Content(
|
||||
cid = 'QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N',
|
||||
erasure = codex_client.models.erasure_parameters.ErasureParameters(
|
||||
total_chunks = 56, ),
|
||||
por = codex_client.models.po_r_parameters.PoRParameters(
|
||||
u = '',
|
||||
public_key = '',
|
||||
name = '', ), ),
|
||||
content = codex_api_client.models.content.Content(
|
||||
cid = 'QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N', ),
|
||||
expiry = '10 minutes',
|
||||
nonce = '', ),
|
||||
slot_index = ''
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
import unittest
|
||||
|
||||
from codex_client.models.slot_agent import SlotAgent
|
||||
from codex_api_client.models.slot_agent import SlotAgent
|
||||
|
||||
class TestSlotAgent(unittest.TestCase):
|
||||
"""SlotAgent unit test stubs"""
|
||||
@ -38,27 +38,21 @@ class TestSlotAgent(unittest.TestCase):
|
||||
id = '268a781e0db3f7cf36b18e5f4fdb7f586ec9edd08e5500b17c0e518a769f114a',
|
||||
slot_index = '',
|
||||
request_id = '0x...',
|
||||
request = codex_client.models.storage_request.StorageRequest(
|
||||
request = codex_api_client.models.storage_request.StorageRequest(
|
||||
id = '',
|
||||
client = '',
|
||||
ask = codex_client.models.storage_ask.StorageAsk(
|
||||
ask = codex_api_client.models.storage_ask.StorageAsk(
|
||||
slots = 56,
|
||||
slot_size = '',
|
||||
duration = '',
|
||||
proof_probability = '',
|
||||
reward = '',
|
||||
max_slot_loss = 56, ),
|
||||
content = codex_client.models.content.Content(
|
||||
cid = 'QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N',
|
||||
erasure = codex_client.models.erasure_parameters.ErasureParameters(
|
||||
total_chunks = 56, ),
|
||||
por = codex_client.models.po_r_parameters.PoRParameters(
|
||||
u = '',
|
||||
public_key = '',
|
||||
name = '', ), ),
|
||||
content = codex_api_client.models.content.Content(
|
||||
cid = 'QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N', ),
|
||||
expiry = '10 minutes',
|
||||
nonce = '', ),
|
||||
reservation = codex_client.models.reservation.Reservation(
|
||||
reservation = codex_api_client.models.reservation.Reservation(
|
||||
id = '0x...',
|
||||
availability_id = '0x...',
|
||||
size = '',
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
import unittest
|
||||
|
||||
from codex_client.models.space import Space
|
||||
from codex_api_client.models.space import Space
|
||||
|
||||
class TestSpace(unittest.TestCase):
|
||||
"""Space unit test stubs"""
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
import unittest
|
||||
|
||||
from codex_client.models.spr_read import SPRRead
|
||||
from codex_api_client.models.spr_read import SPRRead
|
||||
|
||||
class TestSPRRead(unittest.TestCase):
|
||||
"""SPRRead unit test stubs"""
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
import unittest
|
||||
|
||||
from codex_client.models.storage_ask import StorageAsk
|
||||
from codex_api_client.models.storage_ask import StorageAsk
|
||||
|
||||
class TestStorageAsk(unittest.TestCase):
|
||||
"""StorageAsk unit test stubs"""
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
import unittest
|
||||
|
||||
from codex_client.models.storage_request import StorageRequest
|
||||
from codex_api_client.models.storage_request import StorageRequest
|
||||
|
||||
class TestStorageRequest(unittest.TestCase):
|
||||
"""StorageRequest unit test stubs"""
|
||||
@ -37,21 +37,15 @@ class TestStorageRequest(unittest.TestCase):
|
||||
return StorageRequest(
|
||||
id = '',
|
||||
client = '',
|
||||
ask = codex_client.models.storage_ask.StorageAsk(
|
||||
ask = codex_api_client.models.storage_ask.StorageAsk(
|
||||
slots = 56,
|
||||
slot_size = '',
|
||||
duration = '',
|
||||
proof_probability = '',
|
||||
reward = '',
|
||||
max_slot_loss = 56, ),
|
||||
content = codex_client.models.content.Content(
|
||||
cid = 'QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N',
|
||||
erasure = codex_client.models.erasure_parameters.ErasureParameters(
|
||||
total_chunks = 56, ),
|
||||
por = codex_client.models.po_r_parameters.PoRParameters(
|
||||
u = '',
|
||||
public_key = '',
|
||||
name = '', ), ),
|
||||
content = codex_api_client.models.content.Content(
|
||||
cid = 'QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N', ),
|
||||
expiry = '10 minutes',
|
||||
nonce = ''
|
||||
)
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
import unittest
|
||||
|
||||
from codex_client.models.storage_request_creation import StorageRequestCreation
|
||||
from codex_api_client.models.storage_request_creation import StorageRequestCreation
|
||||
|
||||
class TestStorageRequestCreation(unittest.TestCase):
|
||||
"""StorageRequestCreation unit test stubs"""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user