Skip to content

Commit

Permalink
Final tests enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
ccrook committed Apr 14, 2013
1 parent aac902a commit 743600e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions tests/src/python/test_qgsdelimitedtextprovider.py
Expand Up @@ -23,7 +23,7 @@
#
# To recreate all tests, set printTests to true

printTests = True
printTests = False

import os.path;
import re
Expand Down Expand Up @@ -145,7 +145,7 @@ def createTest( name, description, filename, **params ):
print " params={0}".format(repr(params))
print " if printTests:"
print " createTest({0},description,filename,**params)".format(repr(name))
print " return"
print " assert False,\"Set printTests to False to run delimited text tests\""

data=result['data']
log=result['log']
Expand Down Expand Up @@ -264,7 +264,7 @@ def test_002_LoadCSVFile(self):
params={'geomType': 'none', 'type': 'csv'}
if printTests:
createTest('002_LoadCSVFile',description,filename,**params)
return
assert False,"Set printTests to False to run delimited text tests"
wanted={
u'1': {
'id': u'1',
Expand Down Expand Up @@ -320,7 +320,7 @@ def test_003_LoadWhitespace(self):
params={'geomType': 'none', 'type': 'whitespace'}
if printTests:
createTest('003_LoadWhitespace',description,filename,**params)
return
assert False,"Set printTests to False to run delimited text tests"
wanted={
u'1': {
'id': u'1',
Expand Down Expand Up @@ -376,7 +376,7 @@ def test_004_quote_escape(self):
params={'geomType': 'none', 'quote': '"', 'delimiter': '|', 'escape': '\\'}
if printTests:
createTest('004_quote_escape',description,filename,**params)
return
assert False,"Set printTests to False to run delimited text tests"
wanted={
u'1': {
'id': u'1',
Expand Down Expand Up @@ -446,7 +446,7 @@ def test_005_multiple_quote(self):
params={'geomType': 'none', 'quote': '\'"', 'type': 'csv', 'escape': '"\''}
if printTests:
createTest('005_multiple_quote',description,filename,**params)
return
assert False,"Set printTests to False to run delimited text tests"
wanted={
u'1': {
'id': u'1',
Expand Down Expand Up @@ -507,7 +507,7 @@ def test_007_skip_lines(self):
params={'geomType': 'none', 'useHeader': 'no', 'type': 'csv', 'skipLines': '2'}
if printTests:
createTest('007_skip_lines',description,filename,**params)
return
assert False,"Set printTests to False to run delimited text tests"
wanted={
u'3': {
'id': u'3',
Expand All @@ -529,7 +529,7 @@ def test_008_read_coordinates(self):
params={'yField': 'geom_y', 'xField': 'geom_x', 'type': 'csv'}
if printTests:
createTest('008_read_coordinates',description,filename,**params)
return
assert False,"Set printTests to False to run delimited text tests"
wanted={
u'1': {
'id': u'1',
Expand Down Expand Up @@ -567,7 +567,7 @@ def test_009_read_wkt(self):
params={'delimiter': '|', 'type': 'csv', 'wktField': 'geom_wkt'}
if printTests:
createTest('009_read_wkt',description,filename,**params)
return
assert False,"Set printTests to False to run delimited text tests"
wanted={
u'1': {
'id': u'1',
Expand Down Expand Up @@ -609,7 +609,7 @@ def test_010_read_wkt_point(self):
params={'geomType': 'point', 'delimiter': '|', 'type': 'csv', 'wktField': 'geom_wkt'}
if printTests:
createTest('010_read_wkt_point',description,filename,**params)
return
assert False,"Set printTests to False to run delimited text tests"
wanted={
u'1': {
'id': u'1',
Expand Down Expand Up @@ -651,7 +651,7 @@ def test_011_read_wkt_line(self):
params={'geomType': 'line', 'delimiter': '|', 'type': 'csv', 'wktField': 'geom_wkt'}
if printTests:
createTest('011_read_wkt_line',description,filename,**params)
return
assert False,"Set printTests to False to run delimited text tests"
wanted={
u'3': {
'id': u'3',
Expand Down Expand Up @@ -693,7 +693,7 @@ def test_012_read_wkt_polygon(self):
params={'geomType': 'polygon', 'delimiter': '|', 'type': 'csv', 'wktField': 'geom_wkt'}
if printTests:
createTest('012_read_wkt_polygon',description,filename,**params)
return
assert False,"Set printTests to False to run delimited text tests"
wanted={
u'5': {
'id': u'5',
Expand Down

0 comments on commit 743600e

Please sign in to comment.