From 3cd87f807c11fbe7070b872878455bbbc3bba148 Mon Sep 17 00:00:00 2001 From: Alan Iwi Date: Wed, 3 Nov 2021 16:11:54 +0000 Subject: [PATCH] pytest syntax (again, oops...) --- tests/test_context.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_context.py b/tests/test_context.py index bd8e2e7..0fff43d 100644 --- a/tests/test_context.py +++ b/tests/test_context.py @@ -158,7 +158,7 @@ def test_distrib_with_cache_with_all_facets(self): self._test_distrib(constraints=self._distrib_constraints_all_facets, cache=self.cache) - @pytest.mark.xfail("may sometimes fail if server returns incomplete set of results") + @pytest.mark.xfail(reason="may sometimes fail if server returns incomplete set of results") def test_constrain(self): conn = SearchConnection(self.test_service, cache=self.cache) @@ -187,7 +187,7 @@ def test_constrain_regression1(self): context2 = context.constrain(experiment='historical') self.assertTrue('experiment' in context2.facet_constraints) - @pytest.mark.xfail("may sometimes fail if server returns incomplete set of results") + @pytest.mark.xfail(reason="may sometimes fail if server returns incomplete set of results") def test_negative_facet(self): conn = SearchConnection(self.test_service, cache=self.cache)