fiftyone-devicedetection-cloud 4.5.92__tar.gz → 4.5.93__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.
Files changed (20) hide show
  1. {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.93}/PKG-INFO +1 -1
  2. {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.93}/src/fiftyone_devicedetection_cloud.egg-info/PKG-INFO +1 -1
  3. {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.93}/tests/test_cloud.py +11 -23
  4. fiftyone_devicedetection_cloud-4.5.93/version.txt +1 -0
  5. fiftyone_devicedetection_cloud-4.5.92/version.txt +0 -1
  6. {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.93}/MANIFEST.in +0 -0
  7. {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.93}/pyproject.toml +0 -0
  8. {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.93}/readme.md +0 -0
  9. {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.93}/setup.cfg +0 -0
  10. {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.93}/setup.py +0 -0
  11. {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.93}/src/fiftyone_devicedetection_cloud/__init__.py +0 -0
  12. {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.93}/src/fiftyone_devicedetection_cloud/devicedetection_cloud.py +0 -0
  13. {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.93}/src/fiftyone_devicedetection_cloud/devicedetection_cloud_pipelinebuilder.py +0 -0
  14. {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.93}/src/fiftyone_devicedetection_cloud/hardwareprofile_cloud.py +0 -0
  15. {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.93}/src/fiftyone_devicedetection_cloud.egg-info/SOURCES.txt +0 -0
  16. {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.93}/src/fiftyone_devicedetection_cloud.egg-info/dependency_links.txt +0 -0
  17. {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.93}/src/fiftyone_devicedetection_cloud.egg-info/requires.txt +0 -0
  18. {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.93}/src/fiftyone_devicedetection_cloud.egg-info/top_level.txt +0 -0
  19. {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.93}/tests/test_hardwareprofile_cloud.py +0 -0
  20. {fiftyone_devicedetection_cloud-4.5.92 → fiftyone_devicedetection_cloud-4.5.93}/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.92
3
+ Version: 4.5.93
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.92
3
+ Version: 4.5.93
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
@@ -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
- result = ""
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
- self.assertEqual(
130
- result, "Your resource key does not include access to any properties under notpresent. For more details on resource keys, see our explainer: https://51degrees.com/documentation/_info__resource_keys.html Available element data keys are: ['device']")
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
- result = ""
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
- self.assertEqual(
187
- result, "Property notpresent not found in data for element device. This is because your resource key does not include access to this property. Properties that are included for this key under device are " + ', '.join(list(pipeline.get_element("device").get_properties().keys())) + ". For more details on resource keys, see our explainer: https://51degrees.com/documentation/_info__resource_keys.html")
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.93
@@ -1 +0,0 @@
1
- 4.5.92