Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rshewitt committed Jan 3, 2024
1 parent 67f0592 commit 8961449
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 28 deletions.
12 changes: 0 additions & 12 deletions tests/integration/compare/test_compare_int.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
from harvester.load import (
create_ckan_package,
purge_ckan_package,
update_ckan_package,
dcatus_to_ckan,
)
from harvester.compare import compare
from harvester.utils.json import open_json

from pathlib import Path

TEST_DIR = Path(__file__).parents[3]
HARVEST_SOURCES = TEST_DIR / "harvest-sources"


def test_compare(data_sources):
Expand Down
1 change: 0 additions & 1 deletion tests/unit/compare/conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import pytest
from pathlib import Path
import json
from harvester.utils.json import open_json
from harvester.utils.util import sort_dataset, dataset_to_hash

Expand Down
16 changes: 1 addition & 15 deletions tests/unit/load/ckan/conftest.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,12 @@
import os
from pathlib import Path

import pytest

from harvester.load import create_ckan_entrypoint, dcatus_to_ckan
from harvester.load import dcatus_to_ckan
from harvester.utils.json import open_json

TEST_DIR = Path(__file__).parents[3]
HARVEST_SOURCES = TEST_DIR / "harvest-sources"


# @pytest.fixture
# def ckan_entrypoint():
# catalog_dev_api_key = os.getenv("CKAN_API_TOKEN_DEV") # gha
# if catalog_dev_api_key is None: # local
# import credentials

# catalog_dev_api_key = credentials.ckan_catalog_dev_api_key

# return create_ckan_entrypoint("https://catalog-dev.data.gov/", catalog_dev_api_key)


@pytest.fixture
def test_ckan_package_id():
return "e875348b-a7c3-47eb-b0c3-168d978b0c0f"
Expand Down
1 change: 1 addition & 0 deletions tests/unit/load/ckan/test_ckan_cud.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@


def test_dcatus_to_ckan_transform(test_dcatus_catalog):
# ruff: noqa: E501
expected_result = {
"name": "fdic-failed-bank-list",
"owner_org": "test",
Expand Down

0 comments on commit 8961449

Please sign in to comment.