aws-deadline / deadline-cloud-test-fixtures

This package contains pytest fixtures that are used to test AWS Deadline Cloud Python packages
Apache License 2.0
9 stars 13 forks source link

fix: set extra model paths #22

Closed moorec-aws closed 1 year ago

moorec-aws commented 1 year ago

What was the problem/requirement? (What/Why)

After the pytests environment is initiated AWS_DATA_PATH changes will not be recognized.

What was the solution? (How)

Add extra search paths when creating the session so that the LOCAL_MODEL_PATH and DEADLINE_SERVICE_MODEL_S3_URI models can be found.

What is the impact of this change?

Allows user set model paths via env vars to be found

How was this change tested?

hatch run lint
hatch run test

Removed models from my local system and confirmed that setting them via the environment variables worked.

Was this change documented?

No

Is this a breaking change?

No