Closed John-Troutman closed 1 year ago
For ex: something like: in main.py - changing
from code.utils import get_headers
if __name__ == '__main__':
from code.checker import Checker
from code.constants import COLOR, ECHO10_C, SUPPORTED_FORMATS
from code.downloader import Downloader
from code.utils import get_cmr_url, is_valid_cmr_url
else:
from .code.checker import Checker
from .code.constants import COLOR, ECHO10_C, SUPPORTED_FORMATS
from .code.downloader import Downloader
from .code.utils import get_cmr_url, is_valid_cmr_url
to
if __name__ == '__main__':
from code.checker import Checker
from code.constants import COLOR, ECHO10_C, SUPPORTED_FORMATS
from code.downloader import Downloader
from code.utils import get_cmr_url, is_valid_cmr_url
from code.utils import get_headers
else:
from .code.checker import Checker
from .code.constants import COLOR, ECHO10_C, SUPPORTED_FORMATS
from .code.downloader import Downloader
from .code.utils import get_cmr_url, is_valid_cmr_url
from .code.utils import get_headers
and in test_checker.py changing
from pyQuARC.code.checker import Checker
from .fixtures.checker import FUNCTION_MAPPING
from .common import read_test_metadata
to
import sys
import os
sys.path.append(os.getcwd())
from tests.fixtures.checker import FUNCTION_MAPPING
from pyQuARC.code.checker import Checker
from tests.common import read_test_metadata
and so on for the files in that list
Agree with Sam -- try changing the imports using his suggestion, then commit and push (no need to make a new PR, this one will update to reflect your commits). We'll see if that fixes the build error
@John-Troutman - you can check out the files ( tests/test_checker.py tests/test_custom_checker.py tests/test_datetime_validator.py tests/test_downloader.py tests/test_schema_validator.py tests/test_string_validator.py) in my PR if you want to see how I edited them.
Updates to umm-c, echo-c, and echo-g checks based on comments made in checks documents.