Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#73 Convert CID to SQL statements #96

Closed
wants to merge 12 commits into from
Closed

Conversation

heubi95
Copy link
Collaborator

@heubi95 heubi95 commented Mar 12, 2015

  • implemented as_sql_create_inserts function to generate insert statements from a cid and a data file
  • coverage improvement

implemented as_sql_create_inserts to create inserts from a cid object and validio.Reader object
fixed testcase
@coveralls
Copy link

coveralls commented Mar 12, 2015

Coverage Status

Coverage increased (+0.5%) to 98.397% when pulling 9712b1f on heubi95:master into e349b12 on roskakori:master.

@@ -90,6 +90,14 @@ def test_fails_on_invalid_character(self):
"character 'x' (code point U+0078, decimal 120) in field 'something' at column 3 must be an allowed"
" character: 97...99", six.text_type(anticipated_error))

def test_can_raise_not_implemented_error(self):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to test for NotImplementedError, please remove this test case.

@roskakori
Copy link
Owner

Concerning the second assert in test_can_represent_none_range(): Which parts of the code is this test supposed to cover that are not already covered by the other tests? Adding items after the constructor should not be supported by Range and DecimalRange. Maybe we should make items a property that returns a tuple (that cannot be modified) instead of a list.

@@ -281,7 +282,7 @@ def __init__(self, description, default=None):
# Handle "...".
raise errors.InterfaceError(
'ellipsis (...) must be preceded and/or succeeded by number', location)
else:
else: # maybe useless?!
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace whole else clause with assert False.

@roskakori
Copy link
Owner

What error messages do we get for:

  • '1 Tab 2'
  • '1 x 2'
  • '1 2'

@@ -427,7 +428,7 @@ def _item_contains(self, item, value):
lower = item[0]
upper = item[1]
if lower is None:
if upper is None:
if upper is None: # ??
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cleaned this up with #97, just merge.

@roskakori
Copy link
Owner

@heubi95: Patrick's changes have been merged so you should be able to continue with this.

* implemented OracleSqlDialect class
* implemented MSSqlDialect class
* changed keywords to lowercase
* is_keyword function is now case insensitive
Conflicts:
	cutplace/sql.py
	tests/test_sql.py
Conflicts:
	cutplace/sql.py
	tests/test_sql.py
 * implemented DB2SqlDialect
 * implemented test cases
@roskakori
Copy link
Owner

Please resubmit as discussed (to avoid messing with broken branches/forks/work copies/whatnot).

@roskakori roskakori closed this Apr 12, 2015
@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 93.35% when pulling 84649d2 on heubi95:master into f1444be on roskakori:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants