tests: gdrive: skip if env var is empty

This commit is contained in:
Ruslan Kuprieiev
2020-10-06 01:43:39 +03:00
committed by GitHub
parent 026047aa80
commit 9ee5018c63
+1 -1
View File
@@ -16,7 +16,7 @@ TEST_GDRIVE_REPO_BUCKET = "root"
class GDrive(Base, CloudURLInfo):
@staticmethod
def should_test():
return os.getenv(GDriveTree.GDRIVE_CREDENTIALS_DATA) is not None
return bool(os.getenv(GDriveTree.GDRIVE_CREDENTIALS_DATA))
@cached_property
def config(self):