diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index 09374cc..8abb0f3 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -20,4 +20,4 @@ jobs: - name: Run unittest env: PERSPECTIVE_API_KEY: ${{ secrets.PERSPECTIVE_API_KEY }} - run: cd perspective && python -m unittest discover tests/ + run: python -m unittest discover perspective/tests diff --git a/perspective/perspective.py b/perspective/perspective.py index 44bba8b..fe92826 100644 --- a/perspective/perspective.py +++ b/perspective/perspective.py @@ -1,7 +1,7 @@ from typing import List, Optional from .validators import Validators from .api_client import APIClient -from perspective import attribute_types +from . import attribute_types class PerspectiveAPI(object): diff --git a/perspective/validators.py b/perspective/validators.py index 85363b2..f473fc5 100644 --- a/perspective/validators.py +++ b/perspective/validators.py @@ -1,6 +1,6 @@ from typing import Any from .languages import iso_639 -from perspective import attribute_types +from . import attribute_types class Validators(object):