Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Fugue test, add python 3.11 support, remove as_ibis #528

Merged
merged 15 commits into from
Jan 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, "3.10"]
python-version: [3.8, "3.10", "3.11"]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
python-version: ["3.10", "3.11"]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[MESSAGES CONTROL]
disable = C0103,C0114,C0115,C0116,C0122,C0200,C0201,C0302,C0411,C0415,E0401,E0712,E1130,E1136,E5110,R0201,R0205,R0801,R0902,R0903,R0904,R0911,R0912,R0913,R0914,R0915,R1705,R1710,R1714,R1718,R1720,R1724,W0102,W0107,W0108,W0201,W0212,W0221,W0223,W0237,W0511,W0613,W0622,W0631,W0640,W0703,W0707,W1116
disable = C0103,C0114,C0115,C0116,C0122,C0200,C0201,C0302,C0411,C0415,E0401,E0712,E1130,E1136,E5110,R0201,R0205,R0801,R0902,R0903,R0904,R0911,R0912,R0913,R0914,R0915,R1705,R1710,R1714,R1718,R1720,R1724,W0102,W0107,W0108,W0201,W0212,W0221,W0223,W0237,W0511,W0603,W0613,W0621,W0622,W0631,W0640,W0703,W0707,W1116
# TODO: R0205: inherits from object, can be safely removed
11 changes: 11 additions & 0 deletions fugue/test/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# flake8: noqa
from .pandas_tester import NativeTestBackend, PandasTestBackend
from .plugins import (
FugueTestBackend,
FugueTestContext,
FugueTestSuite,
extract_conf,
fugue_test_backend,
fugue_test_suite,
with_backend,
)
24 changes: 24 additions & 0 deletions fugue/test/pandas_tester.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
from contextlib import contextmanager
from typing import Any, Dict, Iterator

from .plugins import FugueTestBackend, fugue_test_backend


@fugue_test_backend
class PandasTestBackend(FugueTestBackend):
name = "pandas"

@classmethod
@contextmanager
def session_context(cls, session_conf: Dict[str, Any]) -> Iterator[Any]:
yield "pandas" # pragma: no cover


@fugue_test_backend
class NativeTestBackend(FugueTestBackend):
name = "native"

@classmethod
@contextmanager
def session_context(cls, session_conf: Dict[str, Any]) -> Iterator[Any]:
yield "native" # pragma: no cover
Loading
Loading