Skip to content

Hacking on Grand

Jordan Matelsky edited this page Nov 24, 2020 · 2 revisions

Proposals for new backends and dialects are welcome!

Before submitting a PR, please make sure all tests pass.


Running tests

You can run all tests with the simple command pytest.

You can omit specific backends from running by passing the environment variable corresponding to that backend (PR #4):

TEST_SQLBACKEND=0 pytest

The above command will test all backends besides SQLBackend.

By default, TEST_NETWORKXBACKEND and TEST_SQLBACKEND are set to 1 (they will run), and TEST_DYNAMODBBACKEND is set to 0 (it will not run). This is because running DynamoDB tests necessitates a DynamoDB endpoint, which you may not have or want to use.

To explicitly run DynamoDB tests, run the following:

TEST_DYNAMODBBACKEND=1 pytest
Clone this wiki locally