From fa759daf474d5200006ac8dace4d109d60fa755d Mon Sep 17 00:00:00 2001 From: Aaron Westendorf Date: Tue, 26 Jun 2018 16:27:32 -0400 Subject: [PATCH 1/2] Fix testing of `expect(foo).times(0)` This is the equivalent of `stub(foo)` but is a more self-documenting approach --- chai/expectation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chai/expectation.py b/chai/expectation.py index 66ec604..024735e 100644 --- a/chai/expectation.py +++ b/chai/expectation.py @@ -260,7 +260,7 @@ def closed(self, with_counts=False): def counts_met(self): return self._run_count >= self._min_count and not ( - self._max_count and not self._max_count == self._run_count) + self._max_count is not None and not self._max_count == self._run_count) def match(self, *args, **kwargs): """ From a26e92951ee01102cabc4f5a2f4ab610254ebafc Mon Sep 17 00:00:00 2001 From: Aaron Westendorf Date: Tue, 26 Jun 2018 17:00:38 -0400 Subject: [PATCH 2/2] Add python 3.6 to Travis tests --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index e761efd..c79d3b5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,6 @@ language: python python: + - "3.6" - "3.4" - "3.3" - "2.7"