sentry-arroyo 2.28.2__py3-none-any.whl → 2.28.3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sentry-arroyo
3
- Version: 2.28.2
3
+ Version: 2.28.3
4
4
  Summary: Arroyo is a Python library for working with streaming data.
5
5
  Home-page: https://github.com/getsentry/arroyo
6
6
  Author: Sentry
@@ -46,7 +46,7 @@ examples/transform_and_produce/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
46
46
  examples/transform_and_produce/batched.py,sha256=st2R6qTneAtV0JFbKP30Ti3sJDYj8Jkbmta9JckKdZU,2636
47
47
  examples/transform_and_produce/script.py,sha256=8kSMIjQNqGYEVyE0PvrfJh-a_UYCrJSstTp_De7kyyg,2306
48
48
  examples/transform_and_produce/simple.py,sha256=H7xqxItjl4tx34wVW5dy6mB9G39QucAtxkJSBzVmjgA,1637
49
- sentry_arroyo-2.28.2.dist-info/licenses/LICENSE,sha256=0Ng3MFdEcnz0sVD1XvGBBzbavvNp_7OAM5yVObB46jU,10829
49
+ sentry_arroyo-2.28.3.dist-info/licenses/LICENSE,sha256=0Ng3MFdEcnz0sVD1XvGBBzbavvNp_7OAM5yVObB46jU,10829
50
50
  tests/backends/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
51
51
  tests/backends/mixins.py,sha256=sfNyE0VTeiD3GHOnBYl-9urvPuURI2G1BWke0cz7Dvc,20445
52
52
  tests/backends/test_commit.py,sha256=iTHfK1qsBxim0XwxgMvNNSMqDUMEHoYkYBDcgxGBFbs,831
@@ -54,7 +54,7 @@ tests/backends/test_kafka.py,sha256=6W6EA41X-ECTfcOeivhQxURnmV2Y0fYy-UzDCnJgDsU,
54
54
  tests/backends/test_kafka_producer.py,sha256=U4iJOU5CoWmFqZdmqRvKrHoEUojsDs5k_ITW6KmKyl8,3608
55
55
  tests/backends/test_local.py,sha256=Mfd4DFuWVSVtl1GomQ6TIoWuJNcAliKqKU0BShPlEMY,3363
56
56
  tests/processing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
57
- tests/processing/test_processor.py,sha256=2uQcbNeiyuPUlpThq9KTBs_fz5JY-BqZE5Fz4Dxspl0,23274
57
+ tests/processing/test_processor.py,sha256=Gj86_WYQ-Eybz2YwLjNLonBfzJQQI9Vqh1WiYTbmcQk,23265
58
58
  tests/processing/strategies/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
59
59
  tests/processing/strategies/test_all.py,sha256=ahAF-nbdmqVkYGNCg0OFCD6fzNTA-XxYrW8NQHajCDU,10167
60
60
  tests/processing/strategies/test_batching.py,sha256=nyyX0y6qYHX7jT4gCgsUjT5RzBMDrBp790SCmOizQ0Q,11787
@@ -73,7 +73,7 @@ tests/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
73
73
  tests/utils/test_concurrent.py,sha256=Gwdzym2UZ1HO3rhOSGmzxImWcLFygY8P7MXHT3Q0xTE,455
74
74
  tests/utils/test_metrics.py,sha256=bI0EtGgPokMQyEqX58i0-8zvLfxRP2nWaWr2wLMaJ_o,917
75
75
  tests/utils/test_retries.py,sha256=AxJLkXWeL9AjHv_p1n0pe8CXXJp24ZQIuYBHfNcmiz4,3075
76
- sentry_arroyo-2.28.2.dist-info/METADATA,sha256=O3gEbDcjSNhCM7wJWYQwqQFdAIRnXQ2DQ8D9tH1waTw,2208
77
- sentry_arroyo-2.28.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
78
- sentry_arroyo-2.28.2.dist-info/top_level.txt,sha256=DVdMZKysL_iIxm5aY0sYgZtP5ZXMg9YBaBmGQHVmDXA,22
79
- sentry_arroyo-2.28.2.dist-info/RECORD,,
76
+ sentry_arroyo-2.28.3.dist-info/METADATA,sha256=9S_Zl0CcCWb-ov7PC5_hmm-dA7_v4BezCxudTleSU04,2208
77
+ sentry_arroyo-2.28.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
78
+ sentry_arroyo-2.28.3.dist-info/top_level.txt,sha256=DVdMZKysL_iIxm5aY0sYgZtP5ZXMg9YBaBmGQHVmDXA,22
79
+ sentry_arroyo-2.28.3.dist-info/RECORD,,
@@ -3,7 +3,6 @@ from datetime import datetime, timedelta
3
3
  from typing import Any, Mapping, Optional, Sequence, cast
4
4
  from unittest import mock
5
5
 
6
- import py.path
7
6
  import pytest
8
7
 
9
8
  from arroyo.backends.local.backend import LocalBroker
@@ -583,7 +582,7 @@ def test_dlq() -> None:
583
582
  assert dlq_policy.producer.produce.call_count == 1
584
583
 
585
584
 
586
- def test_healthcheck(tmpdir: py.path.local) -> None:
585
+ def test_healthcheck(tmp_path: Any) -> None:
587
586
  """
588
587
  Test healthcheck strategy e2e with StreamProcessor, to ensure the
589
588
  combination of both actually touches the file often enough.
@@ -599,7 +598,7 @@ def test_healthcheck(tmpdir: py.path.local) -> None:
599
598
  strategy.submit.side_effect = InvalidMessage(partition, 1)
600
599
  factory = mock.Mock()
601
600
  factory.create_with_partitions.return_value = Healthcheck(
602
- healthcheck_file=str(tmpdir.join("health.txt")), next_step=strategy
601
+ healthcheck_file=str(tmp_path / "health.txt"), next_step=strategy
603
602
  )
604
603
 
605
604
  processor: StreamProcessor[int] = StreamProcessor(
@@ -617,11 +616,11 @@ def test_healthcheck(tmpdir: py.path.local) -> None:
617
616
  assignment_callback(offsets)
618
617
 
619
618
  processor._run_once()
620
- health_mtime = tmpdir.join("health.txt").mtime()
619
+ health_mtime = (tmp_path / "health.txt").stat().st_mtime
621
620
  assert health_mtime < time.time() + 1
622
621
 
623
622
  processor._run_once()
624
- assert tmpdir.join("health.txt").mtime() == health_mtime
623
+ assert (tmp_path / "health.txt").stat().st_mtime == health_mtime
625
624
 
626
625
 
627
626
  def test_processor_pause_with_invalid_message() -> None: