Skip to content

Commit 891c44c

Browse files
committed
fix(swagger): Ignore Flex deprecation warnings
1 parent 7f20bb5 commit 891c44c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/REST/keywords.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# Copyright(C) 2018- Anssi Syrjäsalo (http://a.syrjasalo.com)
55
# Licensed under GNU Lesser General Public License v3 (LGPL-3.0).
66

7+
import warnings
78
from collections import OrderedDict
89
from copy import deepcopy
910
from datetime import datetime
@@ -12,7 +13,10 @@
1213
from os import getcwd, path
1314
from urllib.parse import parse_qsl, urljoin, urlparse
1415

15-
from flex.core import validate_api_call
16+
with warnings.catch_warnings():
17+
warnings.filterwarnings("ignore", category=DeprecationWarning)
18+
from flex.core import validate_api_call
19+
1620
from genson import SchemaBuilder
1721
from jsonpath_ng.ext import parse as parse_jsonpath
1822
from jsonschema import FormatChecker, validate

0 commit comments

Comments
 (0)