File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -64,19 +64,26 @@ http://aws.amazon.com/apache2.0/
64
64
Running tests
65
65
~~~~~~~~~~~~~
66
66
67
- SageMaker Python SDK uses tox for running Python tests. You can run the tests by running tox:
67
+ SageMaker Python SDK has unit tests and integration tests.
68
68
69
- ::
70
-
71
- tox
69
+ **Unit tests **
72
70
73
- Tests are defined in `` tests/ `` and includes unit and integ tests. If you just want to run unit tests, then you can issue :
71
+ tox is a prerequisite for running unit tests so you need to make sure you have it installed. To run the unit tests :
74
72
75
73
::
76
74
77
75
tox tests/unit
78
76
79
- To just run integ tests, issue the following command:
77
+ **Integrations tests **
78
+
79
+ To be able to run the integration tests, the following prerequisites must be met
80
+
81
+ 1. Access to an AWS account to run the tests on
82
+ 2. Make the AWS account credentials available to boto3 clients used in the tests
83
+ 3. Ensure the AWS account has an IAM role named :code: `SageMakerRole `
84
+ 4. Ensure the libraries mentioned in setup.py extra_require for test are installed which can be achieved using :code: `pip install --upgrade .[test] `
85
+
86
+ You can run integ tests by issuing the following command:
80
87
81
88
::
82
89
You can’t perform that action at this time.
0 commit comments