strawberry.tests package

Submodules

strawberry.tests.base module

Base tests.

class strawberry.tests.base.BaseTestCase(methodName='runTest')[source]

Bases: django.test.testcases.TransactionTestCase

Base test case.

pytestmark = [Mark(name='django_db', args=(), kwargs={}), Mark(name='django_db', args=(), kwargs={})]
classmethod setUpClass()[source]

Set up class.

strawberry.tests.test_fields module

Test fields.

class strawberry.tests.test_fields.TestMD5Field(methodName='runTest')[source]

Bases: strawberry.tests.base.BaseTestCase

Test MD5 field.

  • description_hash is nullable, auto-updated field, with auto whitespace strip.
  • summary_hash is nullable, auto-updated field, with auto whitespace strip.
  • credits_hash is non-nullable, auto-updated field.
  • synopsis_hash is non-nullable, auto-updated field, with manual whitespace strip.
pytestmark = [Mark(name='django_db', args=(), kwargs={}), Mark(name='django_db', args=(), kwargs={})]
setUp()[source]

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

classmethod setUpClass()[source]

Set up class.

test_filter_by_field()[source]

Filter by field.

test_filter_by_field_check_update()[source]

Filter by field, check value update.

Module contents

Tests.

class strawberry.tests.TestMD5Field(methodName='runTest')[source]

Bases: strawberry.tests.base.BaseTestCase

Test MD5 field.

  • description_hash is nullable, auto-updated field, with auto whitespace strip.
  • summary_hash is nullable, auto-updated field, with auto whitespace strip.
  • credits_hash is non-nullable, auto-updated field.
  • synopsis_hash is non-nullable, auto-updated field, with manual whitespace strip.
pytestmark = [Mark(name='django_db', args=(), kwargs={}), Mark(name='django_db', args=(), kwargs={})]
setUp()[source]

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

classmethod setUpClass()[source]

Set up class.

test_filter_by_field()[source]

Filter by field.

test_filter_by_field_check_update()[source]

Filter by field, check value update.