From f6f2984e18ed2d9fa39be654b1b4340d7ed8678c Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Feb 21 2019 14:34:47 +0000 Subject: fix unit test for list_archives --- diff --git a/tests/test_hub/test_list_archives.py b/tests/test_hub/test_list_archives.py index 60694af..a70b549 100644 --- a/tests/test_hub/test_list_archives.py +++ b/tests/test_hub/test_list_archives.py @@ -177,10 +177,14 @@ class TestListArchives(DBQueryTestCase): 'win_archives ON archiveinfo.id = win_archives.archive_id']), clauses=sorted([ 'win_archives.relpath = %(relpath)s', - r"platforms ~ E'\\mall\\M'", - r"flags ~ E'\\mA\\M'", - r"flags ~ E'\\mB\\M'"]), - values={'relpath': 'somerelpath'}, + r"platforms ~ %(platforms_pattern_0)s", + r"flags ~ %(flags_pattern_0)s", + r"flags ~ %(flags_pattern_1)s"]), + values={'relpath': 'somerelpath', + 'flags_pattern_0': '\\mA\\M', + 'flags_pattern_1': '\\mB\\M', + 'platforms_pattern_0': '\\mall\\M', + }, colsByAlias={'relpath': 'win_archives.relpath', 'platforms': 'win_archives.platforms', 'flags': 'win_archives.flags',