Remove checks for env var (#5696)

Env var will be filled in `env_var` fixture, here it is too early to check
This commit is contained in:
Petr Kalis 2023-10-05 15:37:45 +02:00 committed by GitHub
parent 3daa0749d1
commit e255c20c44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -271,12 +271,6 @@ class PypeCommands:
if mongo_url:
args.extend(["--mongo_url", mongo_url])
else:
msg = (
"Either provide uri to MongoDB through environment variable"
" OPENPYPE_MONGO or the command flag --mongo_url"
)
assert not os.environ.get("OPENPYPE_MONGO"), msg
print("run_tests args: {}".format(args))
import pytest