Files
galaxy/test/unit/files/test_googledrive.py
T
2022-02-03 07:42:20 -05:00

20 lines
609 B
Python

import os
import pytest
from ._util import assert_simple_file_realize
SCRIPT_DIRECTORY = os.path.abspath(os.path.dirname(__file__))
FILE_SOURCES_CONF = os.path.join(SCRIPT_DIRECTORY, "googledrive_file_sources_conf.yml")
skip_if_no_google_drive_access_token = pytest.mark.skipif(
not os.environ.get("GALAXY_TEST_GOOGLE_DRIVE_ACCESS_TOKEN")
or not os.environ.get("GALAXY_TEST_GOOGLE_DRIVE_REFRESH_TOKEN"),
reason="GALAXY_TEST_GOOGLE_DRIVE_ACCESS_TOKEN and related vars not set",
)
@skip_if_no_google_drive_access_token
def test_file_source():
assert_simple_file_realize(FILE_SOURCES_CONF)