Skip to content

Commit

Permalink
[qa] Skip migration checks
Browse files Browse the repository at this point in the history
Solved travis build errors
  • Loading branch information
nemesifier authored and devkapilbansal committed Aug 26, 2020
1 parent 0d9b46e commit 07bd0c3
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 12 deletions.
1 change: 0 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

7 changes: 5 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -694,9 +694,12 @@ Running QA-checks

You can run qa-checks by using

```./run-qa-checks```
.. code-block:: shell
In docker testing, QA checks are runned automatically.
./run-qa-checks
In docker testing, QA checks are executed automatically.

Contributing
------------
Expand Down
2 changes: 1 addition & 1 deletion run-qa-checks
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
set -e

openwisp-qa-check --migration-path "./tests/django_restframework_gis_tests/migrations/"
openwisp-qa-check --skip-checkmigrations --skip-checkmakemigrations
24 changes: 16 additions & 8 deletions tests/django_restframework_gis_tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,24 @@ class TestRestFrameworkGis(TestCase):
def setUp(self):
self.location_list_url = reverse('api_location_list')
self.geojson_location_list_url = reverse('api_geojson_location_list')
self.geos_error_message = 'Invalid format: string or unicode input unrecognized as GeoJSON,\
WKT EWKT or HEXEWKB.'
self.gdal_error_message = 'Unable to convert to python object: \
Invalid geometry pointer returned from "OGR_G_CreateGeometryFromJson".'
self.geos_error_message = (
'Invalid format: string or unicode input unrecognized as GeoJSON,'
' WKT EWKT or HEXEWKB.'
)
self.gdal_error_message = (
'Unable to convert to python object:'
' Invalid geometry pointer returned from "OGR_G_CreateGeometryFromJson".'
)
if django.VERSION >= (2, 0, 0):
self.value_error_message = "Unable to convert to python object: \
String input unrecognized as WKT EWKT, and HEXEWKB."
self.value_error_message = (
"Unable to convert to python object:"
" String input unrecognized as WKT EWKT, and HEXEWKB."
)
else:
self.value_error_message = "Unable to convert to python object: \
String or unicode input unrecognized as WKT EWKT, and HEXEWKB."
self.value_error_message = (
"Unable to convert to python object:"
" String or unicode input unrecognized as WKT EWKT, and HEXEWKB."
)
self.type_error_message = (
"Unable to convert to python object: Improper geometry input type:"
)
Expand Down

0 comments on commit 07bd0c3

Please sign in to comment.