From 2dee4de65d6f94da7c46a484716ab504d356a0be Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 31 Aug 2022 21:24:12 +0100 Subject: Use precisely instead of PyHamcrest --- tests/styles/parser/tokeniser_tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/styles') diff --git a/tests/styles/parser/tokeniser_tests.py b/tests/styles/parser/tokeniser_tests.py index e8c3c7b..482c5b0 100644 --- a/tests/styles/parser/tokeniser_tests.py +++ b/tests/styles/parser/tokeniser_tests.py @@ -1,4 +1,4 @@ -from hamcrest import assert_that, contains, has_properties +from precisely import assert_that, has_attrs, is_sequence from mammoth.styles.parser.tokeniser import tokenise @@ -98,12 +98,12 @@ def assert_tokens(string, *expected): expected.append(is_token("end", "")) assert_that( tokenise(string), - contains(*expected), + is_sequence(*expected), ) def is_token(token_type, value): - return has_properties( + return has_attrs( type=token_type, value=value, ) -- cgit v1.2.3