Skip to content

Commit

Permalink
test: add Python 3.12 skip markers to additional source-faker tests
Browse files Browse the repository at this point in the history
Co-Authored-By: Aaron <AJ> Steers <[email protected]>
  • Loading branch information
devin-ai-integration[bot] and aaronsteers committed Feb 11, 2025
1 parent 34afa0f commit bd6767b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/integration_tests/test_config_change_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from __future__ import annotations

import sys
import pytest
from typing import Any
from unittest.mock import patch
Expand Down Expand Up @@ -35,6 +36,10 @@ def new_duckdb_destination() -> Destination:


@pytest.fixture
@pytest.mark.skipif(
sys.version_info >= (3, 12),
reason="source-faker is not yet compatible with Python 3.12"
)
def new_source_faker() -> Source:
return get_source(
"source-faker",
Expand Down
9 changes: 9 additions & 0 deletions tests/integration_tests/test_state_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from __future__ import annotations

import sys
from pathlib import Path

import airbyte as ab
Expand All @@ -28,6 +29,10 @@


@pytest.fixture(scope="function") # Each test gets a fresh source-faker instance.
@pytest.mark.skipif(
sys.version_info >= (3, 12),
reason="source-faker is not yet compatible with Python 3.12"
)
def source_faker_seed_a() -> ab.Source:
"""Fixture to return a source-faker connector instance."""
source = ab.get_source(
Expand All @@ -43,6 +48,10 @@ def source_faker_seed_a() -> ab.Source:


@pytest.fixture(scope="function") # Each test gets a fresh source-faker instance.
@pytest.mark.skipif(
sys.version_info >= (3, 12),
reason="source-faker is not yet compatible with Python 3.12"
)
def source_faker_seed_b() -> ab.Source:
"""Fixture to return a source-faker connector instance."""
source = ab.get_source(
Expand Down

0 comments on commit bd6767b

Please sign in to comment.