Colin Talbert 2bd1bd9aed Refactored mpl.use('agg') from the tests __init__
replaced with a swap of
plt.show with an empty lambda
2016-06-07 08:45:03 -06:00
..
2016-04-07 09:58:15 -06:00
2016-04-28 15:26:55 -06:00
2016-04-28 15:26:55 -06:00
2016-04-28 15:26:55 -06:00
2016-04-28 15:26:55 -06:00
2015-03-11 15:11:52 -06:00
2014-09-01 22:00:56 -06:00
2016-04-28 15:26:55 -06:00
2015-11-08 20:25:36 -08:00
2016-04-28 15:26:55 -06:00
2016-04-15 20:30:13 -07:00
2016-04-28 15:26:55 -06:00
2016-04-28 15:26:55 -06:00
2016-04-28 15:26:55 -06:00
2014-09-01 22:00:56 -06:00
2015-11-05 16:59:37 -07:00
2016-04-28 15:26:55 -06:00
2016-01-12 11:36:11 -07:00
2016-04-28 15:26:55 -06:00
2016-04-16 13:12:58 -04:00
2016-04-28 15:26:55 -06:00
2015-06-26 14:04:48 -06:00
2016-04-28 15:26:55 -06:00
2016-05-06 10:58:18 -06:00
2016-04-28 15:26:55 -06:00
2016-04-28 15:26:55 -06:00
2016-04-28 15:26:55 -06:00

=====
Tests
=====

From the root of the project, run

.. code-block::

  $ python -m pytest

The tests that require Amazon S3 access will be skipped if you have no credentials. You can test using a
key like so:

.. code-block::

  $ AWS_ACCESS_KEY_ID=ID AWS_SECRET_ACCESS_KEY=KEY python -m pytest

The key used for Travis is generated using the Amazon CloudFormation template at
https://github.com/mapbox/rasterio/blob/master/cloudformation/testuser.json. If you had to fork
Rasterio and run your own tests, you could `use this template <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-console-create-stack.html>`__ to create your own IAM user and get a new key from your stack's "Outputs" field.