Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmud committed Oct 13, 2020
1 parent 7939b0a commit 985fdb0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 30 deletions.
29 changes: 0 additions & 29 deletions tests/utils.py

This file was deleted.

13 changes: 13 additions & 0 deletions tests/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,16 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
import json
from os import path

FIXTURES_DIR = "tests/fixtures"


def read_fixture(fixture_file_name):
with open(path.join(FIXTURES_DIR, fixture_file_name), "rb") as fixture_file:
return fixture_file.read()


def load_fixture(fixture_file_name):
return json.loads(read_fixture(fixture_file_name))
2 changes: 1 addition & 1 deletion tests/utils/decorators_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
from unittest.mock import Mock
from unittest.mock import call, Mock

from superset.utils import decorators
from tests.base_tests import SupersetTestCase
Expand Down

0 comments on commit 985fdb0

Please sign in to comment.