fiftyone-devicedetection-cloud 4.5.92__tar.gz → 4.5.94__tar.gz
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.
- {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.94}/PKG-INFO +1 -1
- {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.94}/src/fiftyone_devicedetection_cloud.egg-info/PKG-INFO +1 -1
- {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.94}/tests/test_cloud.py +11 -23
- fiftyone_devicedetection_cloud-4.5.94/version.txt +1 -0
- fiftyone_devicedetection_cloud-4.5.92/version.txt +0 -1
- {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.94}/MANIFEST.in +0 -0
- {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.94}/pyproject.toml +0 -0
- {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.94}/readme.md +0 -0
- {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.94}/setup.cfg +0 -0
- {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.94}/setup.py +0 -0
- {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.94}/src/fiftyone_devicedetection_cloud/__init__.py +0 -0
- {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.94}/src/fiftyone_devicedetection_cloud/devicedetection_cloud.py +0 -0
- {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.94}/src/fiftyone_devicedetection_cloud/devicedetection_cloud_pipelinebuilder.py +0 -0
- {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.94}/src/fiftyone_devicedetection_cloud/hardwareprofile_cloud.py +0 -0
- {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.94}/src/fiftyone_devicedetection_cloud.egg-info/SOURCES.txt +0 -0
- {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.94}/src/fiftyone_devicedetection_cloud.egg-info/dependency_links.txt +0 -0
- {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.94}/src/fiftyone_devicedetection_cloud.egg-info/requires.txt +0 -0
- {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.94}/src/fiftyone_devicedetection_cloud.egg-info/top_level.txt +0 -0
- {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.94}/tests/test_hardwareprofile_cloud.py +0 -0
- {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.94}/tests/test_properties.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fiftyone_devicedetection_cloud
|
|
3
|
-
Version: 4.5.
|
|
3
|
+
Version: 4.5.94
|
|
4
4
|
Summary: 51Degrees Device Detection parses HTTP headers to return detailed hardware, operating system, browser, and crawler information for the devices used to access your website or service. This package retrieves device detection results by consuming the 51Degrees cloud service.
|
|
5
5
|
Home-page: https://51degrees.com/?utm_source=pypi&utm_medium=package&utm_campaign=device-detection-python&utm_content=fiftyone_devicedetection_cloud-setup.py&utm_term=url
|
|
6
6
|
Author: 51Degrees Engineering
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fiftyone_devicedetection_cloud
|
|
3
|
-
Version: 4.5.
|
|
3
|
+
Version: 4.5.94
|
|
4
4
|
Summary: 51Degrees Device Detection parses HTTP headers to return detailed hardware, operating system, browser, and crawler information for the devices used to access your website or service. This package retrieves device detection results by consuming the 51Degrees cloud service.
|
|
5
5
|
Home-page: https://51degrees.com/?utm_source=pypi&utm_medium=package&utm_campaign=device-detection-python&utm_content=fiftyone_devicedetection_cloud-setup.py&utm_term=url
|
|
6
6
|
Author: 51Degrees Engineering
|
{fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.94}/tests/test_cloud.py
RENAMED
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
|
|
23
23
|
import unittest
|
|
24
24
|
import os
|
|
25
|
-
import re
|
|
26
25
|
import time
|
|
27
26
|
|
|
28
27
|
from fiftyone_devicedetection_cloud.devicedetection_cloud_pipelinebuilder import DeviceDetectionCloudPipelineBuilder
|
|
@@ -116,18 +115,13 @@ class DeviceDetectionTests(unittest.TestCase):
|
|
|
116
115
|
|
|
117
116
|
fd.process()
|
|
118
117
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
try:
|
|
118
|
+
with self.assertRaises(Exception) as raised:
|
|
122
119
|
fd.get("notpresent")
|
|
123
|
-
except Exception as e:
|
|
124
|
-
result = str(e)
|
|
125
|
-
|
|
126
|
-
# The explainer URL may carry UTM query parameters; ignore them.
|
|
127
|
-
result = re.sub(r'\?utm_[^\s]*', '', result)
|
|
128
120
|
|
|
129
|
-
|
|
130
|
-
|
|
121
|
+
result = str(raised.exception)
|
|
122
|
+
self.assertIn("notpresent", result)
|
|
123
|
+
self.assertIn("['device']", result)
|
|
124
|
+
self.assertIn("https://51degrees.com/documentation/_info__resource_keys.html", result)
|
|
131
125
|
|
|
132
126
|
def test_engine_init_performance(self):
|
|
133
127
|
"""!
|
|
@@ -171,20 +165,14 @@ class DeviceDetectionTests(unittest.TestCase):
|
|
|
171
165
|
|
|
172
166
|
fd.process()
|
|
173
167
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
try:
|
|
168
|
+
with self.assertRaises(Exception) as raised:
|
|
177
169
|
fd.device.get("notpresent")
|
|
178
|
-
except Exception as e:
|
|
179
|
-
result = str(e)
|
|
180
|
-
|
|
181
|
-
self.maxDiff = None
|
|
182
|
-
|
|
183
|
-
# The explainer URL may carry UTM query parameters; ignore them.
|
|
184
|
-
result = re.sub(r'\?utm_[^\s]*', '', result)
|
|
185
170
|
|
|
186
|
-
|
|
187
|
-
|
|
171
|
+
result = str(raised.exception)
|
|
172
|
+
self.assertIn("notpresent", result)
|
|
173
|
+
self.assertIn("device", result)
|
|
174
|
+
self.assertIn(', '.join(pipeline.get_element("device").get_properties().keys()), result)
|
|
175
|
+
self.assertIn("https://51degrees.com/documentation/_info__resource_keys.html", result)
|
|
188
176
|
|
|
189
177
|
def test_cloud_request_origin(self):
|
|
190
178
|
"""!
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
4.5.94
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
4.5.92
|
|
File without changes
|
{fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.94}/pyproject.toml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|