cannabis_reports.tests package¶
Submodules¶
cannabis_reports.tests.api_common module¶
cannabis_reports.tests.api_entity module¶
-
class
cannabis_reports.tests.api_entity.
ApiEntityAbstract
(methodName='runTest')[source]¶ Bases:
cannabis_reports.tests.api_common.ApiCommon
Tests the AbstractEntityEndpoint API endpoints.
cannabis_reports.tests.api_product module¶
-
class
cannabis_reports.tests.api_product.
ApiProductAbstract
(methodName='runTest')[source]¶ Bases:
cannabis_reports.tests.api_common.ApiCommon
Tests the AbstractProductEndpoint API endpoints.
cannabis_reports.tests.test_apis_dispensaries module¶
-
class
cannabis_reports.tests.test_apis_dispensaries.
TestApisDispensaries
(methodName='runTest')[source]¶ Bases:
cannabis_reports.tests.api_entity.ApiEntityAbstract
Tests the Dispensaries API endpoint.
-
UID
= 'ca/san-francisco/grass-roots'¶
-
cannabis_reports.tests.test_apis_edibles module¶
-
class
cannabis_reports.tests.test_apis_edibles.
TestApisEdibles
(methodName='runTest')[source]¶ Bases:
cannabis_reports.tests.api_product.ApiProductAbstract
Tests the Edibles API endpoint.
-
UID
= '4KXM32V9YFC3G2EUNWP400000'¶
-
cannabis_reports.tests.test_apis_extracts module¶
-
class
cannabis_reports.tests.test_apis_extracts.
TestApisExtracts
(methodName='runTest')[source]¶ Bases:
cannabis_reports.tests.api_product.ApiProductAbstract
Tests the Extracts API endpoint.
-
UID
= 'QLG39RN2AFPMR6WLTPLW00000'¶
-
cannabis_reports.tests.test_apis_flowers module¶
-
class
cannabis_reports.tests.test_apis_flowers.
TestApisFlowers
(methodName='runTest')[source]¶ Bases:
cannabis_reports.tests.api_product.ApiProductAbstract
Tests the Flowers API endpoint.
-
UID
= 'AHZ7H4N6467FVUDY3DAY00000'¶
-
cannabis_reports.tests.test_apis_producer module¶
-
class
cannabis_reports.tests.test_apis_producer.
TestApisProducers
(methodName='runTest')[source]¶ Bases:
cannabis_reports.tests.api_entity.ApiEntityAbstract
Tests the Producers API endpoint.
-
UID
= '0000000000L6M7E0000000000'¶
-
cannabis_reports.tests.test_apis_products module¶
-
class
cannabis_reports.tests.test_apis_products.
TestApisProducts
(methodName='runTest')[source]¶ Bases:
cannabis_reports.tests.api_product.ApiProductAbstract
Tests the Products API endpoint.
-
UID
= '9XVU7NK3PEGLAJ372X4F00000'¶
-
cannabis_reports.tests.test_apis_strains module¶
-
class
cannabis_reports.tests.test_apis_strains.
TestApisStrains
(methodName='runTest')[source]¶ Bases:
cannabis_reports.tests.api_product.ApiProductAbstract
Tests the Strains API endpoint.
-
UID
= 'VUJCJ4TYMG000000000000000'¶
-
cannabis_reports.tests.test_base_api module¶
-
class
cannabis_reports.tests.test_base_api.
TestBaseApi
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
-
DATA
= {'test': 1234}¶
-
ENDPOINT
= '/endpoint'¶
-
REQUEST_TYPE
= 'post'¶
-
new_api
(endpoint='/endpoint', data={'test': 1234}, request_type='post', singleton=False, session=None, out_type=None)[source]¶
-
test_base_api_iterates_paginator
(*args, **keywargs)[source]¶ It should pass iteration to the paginator.
-
test_new_paginator_singleton
(*args, **keywargs)[source]¶ It should return the record if singleton and found.
-
cannabis_reports.tests.test_base_model module¶
-
class
cannabis_reports.tests.test_base_model.
TestBaseModel
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
-
class
cannabis_reports.tests.test_base_model.
TestModel
(**kwargs)[source]¶ Bases:
cannabis_reports.base_model.BaseModel
Required Properties:
- a_key (
String
): A key, a unicode string - created_at (
CustomDateTime
): Localized date and time when this record was created., a datetime object - list (
a list of BaseModel
): List, a list (each item is an instance of BaseModel) - list_string (
a list of String
): List of Strings, a list (each item is a unicode string) - sub_instance (
BaseModel
): Sub Instance, an instance of BaseModel - ucpc (
String
): UCPC code for this record., a unicode string - updated_at (
CustomDateTime
): Localized date and time when this record was modified., a datetime object
-
a_key
¶ A key
-
list
¶ List
-
list_string
¶ List of Strings
-
not_a_field
= True¶
-
sub_instance
¶ Sub Instance
- a_key (