|
10 | 10 | from bytewax.testing import TestingSink, TestingSource, run_main |
11 | 11 |
|
12 | 12 |
|
13 | | -@mark.skipif( |
14 | | - os.environ.get("REDIS_HOST") is None |
15 | | - or os.environ.get("REDIS_PORT") is None |
16 | | - or os.environ.get("REDIS_DB") is None |
17 | | - or os.environ.get("REDIS_STREAM") is None, |
18 | | - reason="A running Redis instance has to be configured for this test", |
19 | | -) |
| 13 | +@mark.integration |
20 | 14 | def test_redis_stream_roundtrip() -> None: |
21 | 15 | # Get redis config values. |
22 | 16 | redis_host = os.environ.get("REDIS_HOST", "localhost") |
@@ -78,12 +72,7 @@ def run_flow(out: list) -> None: |
78 | 72 | assert out == expected |
79 | 73 |
|
80 | 74 |
|
81 | | -@mark.skipif( |
82 | | - os.environ.get("REDIS_HOST") is None |
83 | | - or os.environ.get("REDIS_PORT") is None |
84 | | - or os.environ.get("REDIS_DB") is None, |
85 | | - reason="A running Redis instance has to be configured for this test", |
86 | | -) |
| 75 | +@mark.integration |
87 | 76 | def test_kv_sink() -> None: |
88 | 77 | # Get redis config values. |
89 | 78 | redis_host = os.environ.get("REDIS_HOST", "localhost") |
@@ -112,3 +101,8 @@ def test_kv_sink() -> None: |
112 | 101 | # Now check that the data is there |
113 | 102 | assert redis_conn.get("key-1") == b"3" |
114 | 103 | assert redis_conn.get("key-2") == b"5" |
| 104 | + |
| 105 | + |
| 106 | +# Test here to avoid exit code 5 from Pytest runs |
| 107 | +def test_placeholder() -> None: |
| 108 | + pass |
0 commit comments