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

raise exception when if_not_exists is not capable. #322

Merged
merged 2 commits into from Jan 23, 2015

Conversation

mission-liao
Copy link
Contributor

raise exception when calling if_not_exists for table with counter
columns. refer to cqlengine#302 for details.

raise exception when calling if_not_exists for table with counter
columns. refer to cqlengine#302 for details.
@@ -170,3 +189,14 @@ def test_if_not_exists_is_not_include_with_query_on_update(self):
self.assertNotIn("IF NOT EXIST", query)


class IfNotExistWithCounterTest(BaseIfNotExistsWithCounterTest):

def test_instance_raise_exception(self):
Copy link
Member

Choose a reason for hiding this comment

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

could you change this to use the context manager instead? There's a few examples in cqlengine/tests/test_timestamp.py

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure, I just realize that cqlengine didn't support python 2.6.

rustyrazorblade added a commit that referenced this pull request Jan 23, 2015
raise exception when if_not_exists is not capable.
@rustyrazorblade rustyrazorblade merged commit 33768fe into cqlengine:master Jan 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants