pytest-neon 2.1.1__tar.gz → 2.1.2__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 (25) hide show
  1. {pytest_neon-2.1.1 → pytest_neon-2.1.2}/PKG-INFO +1 -1
  2. {pytest_neon-2.1.1 → pytest_neon-2.1.2}/pyproject.toml +1 -1
  3. {pytest_neon-2.1.1 → pytest_neon-2.1.2}/src/pytest_neon/__init__.py +1 -1
  4. {pytest_neon-2.1.1 → pytest_neon-2.1.2}/src/pytest_neon/plugin.py +10 -2
  5. {pytest_neon-2.1.1 → pytest_neon-2.1.2}/uv.lock +1 -1
  6. {pytest_neon-2.1.1 → pytest_neon-2.1.2}/.env.example +0 -0
  7. {pytest_neon-2.1.1 → pytest_neon-2.1.2}/.github/workflows/release.yml +0 -0
  8. {pytest_neon-2.1.1 → pytest_neon-2.1.2}/.github/workflows/tests.yml +0 -0
  9. {pytest_neon-2.1.1 → pytest_neon-2.1.2}/.gitignore +0 -0
  10. {pytest_neon-2.1.1 → pytest_neon-2.1.2}/.neon +0 -0
  11. {pytest_neon-2.1.1 → pytest_neon-2.1.2}/CLAUDE.md +0 -0
  12. {pytest_neon-2.1.1 → pytest_neon-2.1.2}/LICENSE +0 -0
  13. {pytest_neon-2.1.1 → pytest_neon-2.1.2}/README.md +0 -0
  14. {pytest_neon-2.1.1 → pytest_neon-2.1.2}/src/pytest_neon/py.typed +0 -0
  15. {pytest_neon-2.1.1 → pytest_neon-2.1.2}/tests/conftest.py +0 -0
  16. {pytest_neon-2.1.1 → pytest_neon-2.1.2}/tests/test_branch_lifecycle.py +0 -0
  17. {pytest_neon-2.1.1 → pytest_neon-2.1.2}/tests/test_cli_options.py +0 -0
  18. {pytest_neon-2.1.1 → pytest_neon-2.1.2}/tests/test_env_var.py +0 -0
  19. {pytest_neon-2.1.1 → pytest_neon-2.1.2}/tests/test_fixture_errors.py +0 -0
  20. {pytest_neon-2.1.1 → pytest_neon-2.1.2}/tests/test_integration.py +0 -0
  21. {pytest_neon-2.1.1 → pytest_neon-2.1.2}/tests/test_migrations.py +0 -0
  22. {pytest_neon-2.1.1 → pytest_neon-2.1.2}/tests/test_readwrite_readonly_fixtures.py +0 -0
  23. {pytest_neon-2.1.1 → pytest_neon-2.1.2}/tests/test_reset_behavior.py +0 -0
  24. {pytest_neon-2.1.1 → pytest_neon-2.1.2}/tests/test_skip_behavior.py +0 -0
  25. {pytest_neon-2.1.1 → pytest_neon-2.1.2}/tests/test_xdist_worker_support.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pytest-neon
3
- Version: 2.1.1
3
+ Version: 2.1.2
4
4
  Summary: Pytest plugin for Neon database branch isolation in tests
5
5
  Project-URL: Homepage, https://github.com/ZainRizvi/pytest-neon
6
6
  Project-URL: Repository, https://github.com/ZainRizvi/pytest-neon
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "pytest-neon"
7
- version = "2.1.1"
7
+ version = "2.1.2"
8
8
  description = "Pytest plugin for Neon database branch isolation in tests"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -9,7 +9,7 @@ from pytest_neon.plugin import (
9
9
  neon_engine,
10
10
  )
11
11
 
12
- __version__ = "2.1.1"
12
+ __version__ = "2.1.2"
13
13
  __all__ = [
14
14
  "NeonBranch",
15
15
  "neon_branch",
@@ -480,9 +480,17 @@ def _wait_for_operations(
480
480
  return # All operations already complete
481
481
 
482
482
  waited = 0.0
483
+ first_poll = True
483
484
  while pending_op_ids and waited < max_wait_seconds:
484
- time.sleep(poll_interval)
485
- waited += poll_interval
485
+ # Poll immediately first time (operation usually completes instantly),
486
+ # then wait between subsequent polls
487
+ if first_poll:
488
+ time.sleep(0.1) # Tiny delay to let operation start
489
+ waited += 0.1
490
+ first_poll = False
491
+ else:
492
+ time.sleep(poll_interval)
493
+ waited += poll_interval
486
494
 
487
495
  # Check status of each pending operation
488
496
  still_pending = []
@@ -1200,7 +1200,7 @@ wheels = [
1200
1200
 
1201
1201
  [[package]]
1202
1202
  name = "pytest-neon"
1203
- version = "2.0.0"
1203
+ version = "2.1.0"
1204
1204
  source = { editable = "." }
1205
1205
  dependencies = [
1206
1206
  { name = "neon-api" },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes