diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 89ed8532..9d25f33f 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -8,8 +8,8 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, macos-latest, windows-latest] - python-version: [3.6, 3.7, 3.8, 3.9, "3.10"] + os: [ubuntu-latest, macos-latest] + python-version: ["3.7", "3.8", "3.9", "3.10"] steps: - uses: actions/checkout@v2 @@ -26,8 +26,9 @@ jobs: - name: Generate API run: | - python setup.py generate --api + make venv + make api - name: Run tests run: | - tox + tox \ No newline at end of file diff --git a/tests/filters/__init__.py b/tests/filters/__init__.py index e93649f5..ebc674c4 100644 --- a/tests/filters/__init__.py +++ b/tests/filters/__init__.py @@ -17,9 +17,11 @@ # along with Pyrogram. If not, see . class Client: - @staticmethod - async def get_me(): - return User("username") + def __init__(self): + self.username = "username" + + async def get_me(self): + return User(self.username) class User: