Debian Codegraph @

tests/README.md

raw
1 To run the test suite against the published package:
2
3 py.test -x -vvv --doctest-modules --pyargs azure.datalake.store tests
4
5 To run the test suite against a local build:
6
7 python setup.py develop
8
9 py.test -x -vvv --doctest-modules --pyargs azure.datalake.store tests
10
11 This test suite uses [VCR.py](https://github.com/kevin1024/vcrpy) to record the
12 responses from Azure. Borrowing from VCR's
13 [usage](https://vcrpy.readthedocs.io/en/latest/usage.html#record-modes), this
14 test suite has four recording modes: `once`, `new_episodes`, `none`, `all`. The
15 recording mode can be changed using the `RECORD_MODE` environment variable when
16 invoking the test suite (defaults to `none`).
17
18 To record responses for a new test without updating previous recordings:
19
20 RECORD_MODE=once py.test -x -vvv --doctest-modules --pyargs azure-datalake-store tests
21
22 To record responses for all tests even if previous recordings exist:
23
24 RECORD_MODE=all py.test -x -vvv --doctest-modules --pyargs azure-datalake-store tests
25
26 When recording new responses, you will need valid Azure credentials. The following
27 environment variables should be defined:
28
29 * `azure_data_lake_store_name` : The data store account name, without any suffix like azuredatalakestore.net
30 * `azure_subscription_id` : Subscription ID for ADLS account
31 * `azure_resource_group_name` : Resource group for adls account.
32 * `azure_service_principal` : Service principal of app with owner access to account.
33 * `azure_service_principal_secret`: Service principal secret with owner access to account.
34 * `AZURE_ACL_TEST_APPID ` : Service principal of app with access to account.
35
36 Optionally, you may need to define `azure_username`, `azure_password`, `azure_tenant_id` or `azure_data_lake_store_url_suffix`.