edx_salesforce.tests package

Submodules

edx_salesforce.tests.edx_sample_data module

Sample data to test edx_data.py

edx_salesforce.tests.mixins module

Mixin to create test edxapp and ecommerce database schemas and load test data into them.

class edx_salesforce.tests.mixins.DatabaseMixin

Bases: object

Mixin for creating the test database schema and loading test data.

classmethod setUpTestData()

Set up the sample data.

edx_salesforce.tests.test_edx_data module

Unit tests for edx_data.py.

class edx_salesforce.tests.test_edx_data.EdxDataTests(methodName='runTest')

Bases: edx_salesforce.tests.mixins.DatabaseMixin, django.test.testcases.TestCase

Test cases for edx_data.py

setUp()
classmethod setUpTestData()
test_fetch_language_preference_data()

Test _fetch_users_for_site for given site-domain

test_fetch_order_data()

Test _fetch_order_data for given organizations

test_fetch_tracking_data()

Test _fetch_tracking_data for given username

test_fetch_user_data()

Test fetch_user_data for given username

test_fetch_user_profile_data()

Test _fetch_user_data for given username

test_fetch_users_for_site()

Test _fetch_users_for_site for given site-domain

edx_salesforce.tests.test_models module

edx_salesforce.tests.test_run_user_account_report module

Unit tests for run_user_account_report management command.

class edx_salesforce.tests.test_run_user_account_report.TestUserAccountReport(methodName='runTest')

Bases: django.test.testcases.TestCase

Test run_user_account_report management command.

setUp()
test_command_with_invalid_arguments()

Test management command raises CommandError with invalid argument.

test_command_with_user_data(*args, **keywargs)

Test management command with user data and check if csv file exists.

test_command_with_user_data_with_output_directory(*args, **keywargs)

Test management command with user data and check if csv file exists.

test_command_without_user_data(*args, **keywargs)

Test management command without user data and output directory should be empty.

edx_salesforce.tests.test_sync_salesforce module

edx_salesforce.tests.test_utils module

Module contents