ormex.tests package

Submodules

ormex.tests.base module

Base tests module.

  • log_info: Method decorator, logs info about the method (name, return value).
  • LOG_INFO: Flag.
  • app_setup: Setup the app.
  • skip: Method decorator. If used, tests is skipped.
  • is_app_setup_completed: Check if app setup has been completed.
  • mark_app_setup_as_completed: Mark the app setup as completed.
ormex.tests.base.log_info(func)[source]

Log some useful info.

ormex.tests.base.skip(func)[source]

Simply skip the test.

ormex.tests.base.is_app_setup_completed()[source]

Check if app setup is completed.

ormex.tests.base.mark_app_setup_as_completed()[source]

Mark app setup as completed.

ormex.tests.helpers module

Base tests module.

  • setup_app: Setup the app, collect the static, mark app setup as completed.
ormex.tests.helpers.setup_app(collectstatic=False)[source]

Set up app.

ormex.tests.test_aggregations module

Test the aggregations package.

class ormex.tests.test_aggregations.OrmexAggregationsTest(methodName='runTest')[source]

Bases: django.test.testcases.TestCase

Testing django-ormex aggregations functionality.

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

Set up.

test_01_group_concat(*args, **kwargs)

Inner.

test_02_group_concat_with_separator(*args, **kwargs)

Inner.

test_03_group_concat_with_alternative_separator(*args, **kwargs)

Inner.

test_04_group_concat_with_order_by(*args, **kwargs)

Inner.

Module contents