server/tests-py: Load the Python environment in a .envrc file.

This makes it easier to run the tests when `cd`-ing into the directory,
and also takes care of cleaning up the environment when you exit the
directory.

It also helps editors with direnv support find the relevant libraries
so that they can perform more helpful analysis.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4963
GitOrigin-RevId: d253c054c09c1bf7017ade9f7af414b56ee26fe0
This commit is contained in:
Samir Talwar 2022-07-05 18:51:19 +02:00 committed by hasura-bot
parent 3fc25a39d3
commit b21d058bec

4
server/tests-py/.envrc Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
source_env ../../.envrc
source_env .hasura-dev-python-venv/bin/activate