Skip to content

Commit

Permalink
rename tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yukikaoru committed Dec 30, 2019
1 parent b5bbe9b commit 45302b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_query.py
Original file line number Diff line number Diff line change
@@ -8,21 +8,21 @@ def test_文字列型と日時型は引用符で括られる():
assert q.build() == "(and foo:'hoge' bar:123 baz:'2013-01-23T12:34:56')"


def test_AND論理演算子():
def test_AND論理式():
expr = And(("foo", "hoge"), ("bar", 123))
assert expr.query() == "(and foo:'hoge' bar:123)"


def test_OR論理演算子():
def test_OR論理式():
expr = Or(("foo", "hoge"), ("bar", 123))
assert expr.query() == "(or foo:'hoge' bar:123)"


def test_NOT論理演算子():
def test_NOT論理式():
expr = Not(("foo", "hoge"), ("bar", 123))
assert expr.query() == "(not foo:'hoge' bar:123)"


def test_論理演算子は入れ子にできる():
def test_論理式は入れ子にできる():
expr = And(("foo", "hoge"), Or(("bar", 123), Not(("baz", datetime(2013, 1, 23, 12, 34, 56)))))
assert expr.query() == "(and foo:'hoge' (or bar:123 (not baz:'2013-01-23T12:34:56')))"

0 comments on commit 45302b2

Please sign in to comment.