Sample data to test edx_data.py
Mixin to create test edxapp and ecommerce database schemas and load test data into them.
Unit tests for edx_data.py.
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()¶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
Unit tests for run_user_account_report management command.
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.