Skip to content

Commit

Permalink
Refactor Fugue test, add python 3.11 support, remove as_ibis (#528)
Browse files Browse the repository at this point in the history
* Refactor Fugue test

* update

* update

* update

* update

* update

* update

* update

* update

* update

* Add 3.11 support

* update

* update comments

* update

* update
  • Loading branch information
goodwanghan authored Jan 2, 2024
1 parent 846cca9 commit 29f105d
Show file tree
Hide file tree
Showing 86 changed files with 1,468 additions and 1,633 deletions.
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

0 comments on commit 29f105d

Please sign in to comment.