From bf3f40d80f976fd7fd46262b360eefc7d583d5a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez=20Mondrag=C3=B3n?= <16805946+edgarrmondragon@users.noreply.github.com> Date: Thu, 15 Feb 2024 16:53:53 -0600 Subject: [PATCH] test: Add pytest `filterwarnings` (#50) --- pyproject.toml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 701ccd0..fda90f8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -59,3 +59,17 @@ typing = "t" [tool.ruff.pydocstyle] convention = "google" + +[tool.pytest.ini_options] +filterwarnings = [ + "error", + "ignore:Fields in transformed catalog but not in records:UserWarning", + "ignore:No records were available to test:UserWarning", + "ignore:No records returned in stream 'campaigns':UserWarning", + "ignore:No records returned in stream 'events':UserWarning", + "ignore:No records returned in stream 'flows':UserWarning", + "ignore:No records returned in stream 'listperson':UserWarning", + "ignore:No records returned in stream 'lists':UserWarning", + "ignore:No records returned in stream 'profiles':UserWarning", + "ignore:No records returned in stream 'templates':UserWarning", +]