Skip to content

Commit

Permalink
Revert "Test removal of import workaround. Tests still passed locally…
Browse files Browse the repository at this point in the history
…... #2319"

This reverts commit 4e8bf40.
  • Loading branch information
abhidg committed Feb 18, 2022
1 parent 04cc07f commit f44aa1a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion ingestion/functions/parsing/argentina/argentina.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,18 @@
import csv
import json
import common.ingestion_logging as logging
import common.parsing_lib as parsing_lib

# Layer code, like parsing_lib, is added to the path by AWS.
# To test locally (e.g. via pytest), we have to modify sys.path.
# pylint: disable=import-error
try:
import parsing_lib
except ImportError:
sys.path.append(
os.path.join(
os.path.dirname(os.path.abspath(__file__)),
os.pardir, os.pardir, 'common'))
import parsing_lib

logger = logging.getLogger(__name__)

Expand Down

0 comments on commit f44aa1a

Please sign in to comment.