@@ -83,37 +83,6 @@ The transaction is created when the first SQL statement is executed.
83
83
exits the * with* context and the queries succeed, otherwise
84
84
`presto.dbapi.Connection.rollback()' will be called.
85
85
86
- # Running Tests
87
-
88
- There is a helper scripts, ` run ` , that provides commands to run tests.
89
- Type ` ./run tests ` to run both unit and integration tests.
90
-
91
- ` presto-python-client ` uses [ pytest] ( https://pytest.org/ ) for its tests. To run
92
- only unit tests, type:
93
-
94
- ```
95
- $ pytest tests
96
- ```
97
-
98
- Then you can pass options like ` --pdb ` or anything supported by ` pytest --help ` .
99
-
100
- To run the tests with different versions of Python in managed * virtualenvs* ,
101
- use ` tox ` (see the configuration in ` tox.ini ` ):
102
-
103
- ```
104
- $ tox
105
- ```
106
-
107
- To run integration tests:
108
-
109
- ```
110
- $ pytest integration_tests
111
- ```
112
-
113
- They pull a Docker image and then run a container with a Presto server:
114
- - the image is named ` prestosql/presto:${PRESTO_VERSION} `
115
- - the container is named ` presto-python-client-tests-{uuid4()[:7]} `
116
-
117
86
# Development
118
87
119
88
## Getting Started With Development
@@ -150,6 +119,37 @@ When the code is ready, submit a Pull Request.
150
119
- Prefer code that is readable over one that is "clever".
151
120
- When writing a Git commit message, follow these [ guidelines] ( https://chris.beams.io/posts/git-commit/ ) .
152
121
122
+ ## Running Tests
123
+
124
+ There is a helper scripts, ` run ` , that provides commands to run tests.
125
+ Type ` ./run tests ` to run both unit and integration tests.
126
+
127
+ ` presto-python-client ` uses [ pytest] ( https://pytest.org/ ) for its tests. To run
128
+ only unit tests, type:
129
+
130
+ ```
131
+ $ pytest tests
132
+ ```
133
+
134
+ Then you can pass options like ` --pdb ` or anything supported by ` pytest --help ` .
135
+
136
+ To run the tests with different versions of Python in managed * virtualenvs* ,
137
+ use ` tox ` (see the configuration in ` tox.ini ` ):
138
+
139
+ ```
140
+ $ tox
141
+ ```
142
+
143
+ To run integration tests:
144
+
145
+ ```
146
+ $ pytest integration_tests
147
+ ```
148
+
149
+ They pull a Docker image and then run a container with a Presto server:
150
+ - the image is named ` prestosql/presto:${PRESTO_VERSION} `
151
+ - the container is named ` presto-python-client-tests-{uuid4()[:7]} `
152
+
153
153
## Releasing
154
154
155
155
- [ Set up your development environment] ( #Getting-Started-With-Development ) .
0 commit comments