edx-enterprise-data 8.0.0__py3-none-any.whl → 8.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {edx_enterprise_data-8.0.0.dist-info → edx_enterprise_data-8.2.0.dist-info}/METADATA +4 -1
- {edx_enterprise_data-8.0.0.dist-info → edx_enterprise_data-8.2.0.dist-info}/RECORD +33 -19
- {edx_enterprise_data-8.0.0.dist-info → edx_enterprise_data-8.2.0.dist-info}/WHEEL +1 -1
- enterprise_data/__init__.py +1 -1
- enterprise_data/admin_analytics/__init__.py +0 -0
- enterprise_data/admin_analytics/constants.py +15 -0
- enterprise_data/admin_analytics/data_loaders.py +137 -0
- enterprise_data/admin_analytics/database.py +31 -0
- enterprise_data/admin_analytics/utils.py +81 -0
- enterprise_data/api/v1/serializers.py +20 -0
- enterprise_data/api/v1/urls.py +13 -6
- enterprise_data/api/v1/views/__init__.py +0 -0
- enterprise_data/api/v1/views/base.py +26 -0
- enterprise_data/api/v1/views/enterprise_admin.py +109 -0
- enterprise_data/api/v1/{views.py → views/enterprise_learner.py} +5 -114
- enterprise_data/api/v1/views/enterprise_offers.py +41 -0
- enterprise_data/tests/admin_analytics/__init__.py +0 -0
- enterprise_data/tests/admin_analytics/test_data_loaders.py +86 -0
- enterprise_data/tests/admin_analytics/test_utils.py +102 -0
- enterprise_data/tests/api/v1/views/__init__.py +0 -0
- enterprise_data/tests/api/v1/views/test_enterprise_admin.py +82 -0
- enterprise_data/tests/test_filters.py +1 -1
- enterprise_data/tests/test_utils.py +73 -0
- enterprise_data/utils.py +48 -1
- enterprise_reporting/clients/__init__.py +2 -3
- enterprise_reporting/external_resource_link_report.py +3 -3
- enterprise_reporting/tests/test_clients.py +1 -1
- enterprise_reporting/tests/test_enterprise_client.py +2 -5
- enterprise_reporting/tests/test_external_link_report.py +2 -2
- enterprise_reporting/tests/test_utils.py +3 -3
- enterprise_reporting/utils.py +1 -1
- {edx_enterprise_data-8.0.0.dist-info → edx_enterprise_data-8.2.0.dist-info}/LICENSE +0 -0
- {edx_enterprise_data-8.0.0.dist-info → edx_enterprise_data-8.2.0.dist-info}/top_level.txt +0 -0
@@ -2,14 +2,11 @@
|
|
2
2
|
Test Enterprise client.
|
3
3
|
"""
|
4
4
|
|
5
|
+
import json
|
5
6
|
import os
|
6
7
|
import unittest
|
7
8
|
|
8
|
-
import
|
9
|
-
|
10
|
-
from enterprise_reporting.utils import (
|
11
|
-
extract_catalog_uuids_from_reporting_config,
|
12
|
-
)
|
9
|
+
from enterprise_reporting.utils import extract_catalog_uuids_from_reporting_config
|
13
10
|
|
14
11
|
REPO_DIR = os.getcwd()
|
15
12
|
FIXTURE_DIR = os.path.join(REPO_DIR, 'enterprise_reporting/fixtures')
|
@@ -2,13 +2,13 @@
|
|
2
2
|
Test utils for external link reports.
|
3
3
|
"""
|
4
4
|
|
5
|
-
from collections import OrderedDict
|
6
5
|
import unittest
|
6
|
+
from collections import OrderedDict
|
7
7
|
|
8
8
|
from enterprise_reporting.external_resource_link_report import (
|
9
9
|
AGGREGATE_REPORT_CSV_HEADER_ROW,
|
10
|
-
create_csv_string,
|
11
10
|
create_columns_for_aggregate_report,
|
11
|
+
create_csv_string,
|
12
12
|
process_coursegraph_results,
|
13
13
|
split_up_results,
|
14
14
|
)
|
@@ -3,12 +3,15 @@ Test utilities.
|
|
3
3
|
"""
|
4
4
|
|
5
5
|
|
6
|
+
import datetime
|
6
7
|
import os
|
7
8
|
import tempfile
|
8
9
|
import unittest
|
9
10
|
from collections import OrderedDict
|
11
|
+
|
10
12
|
import ddt
|
11
13
|
import pgpy
|
14
|
+
import pytz
|
12
15
|
from pgpy.constants import CompressionAlgorithm, HashAlgorithm, KeyFlags, PubKeyAlgorithm, SymmetricKeyAlgorithm
|
13
16
|
from pgpy.errors import PGPError
|
14
17
|
|
@@ -16,9 +19,6 @@ from enterprise_reporting import utils
|
|
16
19
|
|
17
20
|
from .utils import create_files, verify_compressed
|
18
21
|
|
19
|
-
import pytz
|
20
|
-
import datetime
|
21
|
-
|
22
22
|
|
23
23
|
@ddt.ddt
|
24
24
|
class TestUtilities(unittest.TestCase):
|
enterprise_reporting/utils.py
CHANGED
@@ -11,6 +11,7 @@ from collections import OrderedDict
|
|
11
11
|
from email.mime.application import MIMEApplication
|
12
12
|
from email.mime.multipart import MIMEMultipart
|
13
13
|
from email.mime.text import MIMEText
|
14
|
+
from urllib.parse import parse_qs, urlparse
|
14
15
|
|
15
16
|
import boto3
|
16
17
|
import pgpy
|
@@ -18,7 +19,6 @@ import pyminizip
|
|
18
19
|
import pytz
|
19
20
|
from cryptography.fernet import Fernet
|
20
21
|
from fernet_fields.hkdf import derive_fernet_key
|
21
|
-
from urllib.parse import parse_qs, urlparse
|
22
22
|
|
23
23
|
from django.utils.encoding import force_str
|
24
24
|
|
File without changes
|
File without changes
|