graphene_elastic.tests package

Submodules

graphene_elastic.tests.base module

class graphene_elastic.tests.base.BaseGrapheneElasticTestCase(methodName='runTest')[source]

Bases: TestCase

Base graphene-elastic test case.

create_elasticsearch_indexes()[source]

Create ES indexes.

remove_elasticsearch_index(index_name, retry=0)[source]
remove_elasticsearch_indexes()[source]

Remove all ES indexes.

setUp()[source]

Hook method for setting up the test fixture before exercising it.

classmethod setUpClass()[source]

Hook method for setting up class fixture before running tests in the class.

classmethod sleep(value=3)[source]
tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

graphene_elastic.tests.test_faceted_search_backend module

class graphene_elastic.tests.test_faceted_search_backend.FacetedSearchBackendElasticTestCase(methodName='runTest')[source]

Bases: BaseGrapheneElasticTestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_all()[source]

Test all.

Since we don’t write in specific tests, it’s more efficient to run them all from a single method in order to save on speed ups between tests.

graphene_elastic.tests.test_filter_backend module

class graphene_elastic.tests.test_filter_backend.FilterBackendElasticTestCase(methodName='runTest')[source]

Bases: BaseGrapheneElasticTestCase

endpoint = 'allPostDocuments'
setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_all()[source]

Test all.

Since we don’t write in specific tests, it’s more efficient to run them all from a single method in order to save on speed ups between tests.

graphene_elastic.tests.test_highlight_backend module

class graphene_elastic.tests.test_highlight_backend.HighlightBackendElasticTestCase(methodName='runTest')[source]

Bases: BaseGrapheneElasticTestCase

query_name = 'allPostDocuments'
setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_all()[source]

Test all.

Since we don’t write in specific tests, it’s more efficient to run them all from a single method in order to save on speed ups between tests.

class graphene_elastic.tests.test_highlight_backend.HighlightCompoundBackendElasticTestCase(methodName='runTest')[source]

Bases: HighlightBackendElasticTestCase

query_name = 'allReadOnlyPostDocuments'

graphene_elastic.tests.test_ordering_backend module

class graphene_elastic.tests.test_ordering_backend.OrderingBackendElasticTestCase(methodName='runTest')[source]

Bases: BaseGrapheneElasticTestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_all()[source]

Test all.

Since we don’t write in specific tests, it’s more efficient to run them all from a single method in order to save on speed ups between tests.

graphene_elastic.tests.test_pagination module

class graphene_elastic.tests.test_pagination.PaginationTestCase(methodName='runTest')[source]

Bases: BaseGrapheneElasticTestCase

query_name = 'allPostDocuments'
setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_all()[source]

Test all.

Since we don’t write in specific tests, it’s more efficient to run them all from a single method in order to save on speed ups between tests.

graphene_elastic.tests.test_post_filter_backend module

class graphene_elastic.tests.test_post_filter_backend.PostFilterBackendElasticTestCase(methodName='runTest')[source]

Bases: BaseGrapheneElasticTestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_all()[source]

Test all.

Since we don’t write in specific tests, it’s more efficient to run them all from a single method in order to save on speed ups between tests.

graphene_elastic.tests.test_query_string_backend module

class graphene_elastic.tests.test_query_string_backend.QueryStringBackendElasticTestCase(methodName='runTest')[source]

Bases: BaseGrapheneElasticTestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_all()[source]

Test all.

Since we don’t write in specific tests, it’s more efficient to run them all from a single method in order to save on speed ups between tests.

graphene_elastic.tests.test_score_backend module

class graphene_elastic.tests.test_score_backend.ScoreBackendElasticTestCase(methodName='runTest')[source]

Bases: BaseGrapheneElasticTestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_all()[source]

Test all.

Since we don’t write in specific tests, it’s more efficient to run them all from a single method in order to save on speed ups between tests.

graphene_elastic.tests.test_search_backend module

class graphene_elastic.tests.test_search_backend.CompoundSearchBackendElasticTestCase(methodName='runTest')[source]

Bases: SearchBackendElasticTestCase

query_name = 'allReadOnlyPostDocuments'
class graphene_elastic.tests.test_search_backend.SearchBackendElasticTestCase(methodName='runTest')[source]

Bases: BaseGrapheneElasticTestCase

query_name = 'allPostDocuments'
setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_all()[source]

Test all.

Since we don’t write in specific tests, it’s more efficient to run them all from a single method in order to save on speed ups between tests.

graphene_elastic.tests.test_simple_query_string_backend module

class graphene_elastic.tests.test_simple_query_string_backend.SimpleQueryStringBackendElasticTestCase(methodName='runTest')[source]

Bases: BaseGrapheneElasticTestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_all()[source]

Test all.

Since we don’t write in specific tests, it’s more efficient to run them all from a single method in order to save on speed ups between tests.

graphene_elastic.tests.test_source_backend module

class graphene_elastic.tests.test_source_backend.HighlightBackendElasticTestCase(methodName='runTest')[source]

Bases: BaseGrapheneElasticTestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_all()[source]

Test all.

Since we don’t write in specific tests, it’s more efficient to run them all from a single method in order to save on speed ups between tests.

graphene_elastic.tests.test_versions module

class graphene_elastic.tests.test_versions.VersionsTest(methodName='runTest')[source]

Bases: TestCase

Tests of graphene_elastic.versions module.

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_elasticsearch_dsl_6_3_0()[source]

Tests as if we were using elasticsearch_dsl==6.3.0.

test_elasticsearch_dsl_7_0_0()[source]

Tests as if we were using elasticsearch_dsl==7.0.0.

Module contents