Skip to content

Commit

Permalink
Merge pull request #147 from tmikuska/master
Browse files Browse the repository at this point in the history
Hid HTTP request logs in tests; fixed a deprecation warning
  • Loading branch information
xorrkaz authored Feb 24, 2024
2 parents 5e7321f + 15c941a commit 59905ac
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ omit =
*/templates/*
*/static/*
*/examples/*
tests/*
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[metadata]
description-file = README.md
description_file = README.md
6 changes: 6 additions & 0 deletions tests/v2/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import logging
import os
import unittest
from click.testing import CliRunner
Expand All @@ -12,6 +13,11 @@
from virl2_client import ClientLibrary


# set to warning to hide unwanted HTTP requests
logger = logging.getLogger("httpx")
logger.setLevel(logging.WARNING)


def setup_cml_environ():
os.environ["VIRL_HOST"] = "localhost"
os.environ["VIRL_USERNAME"] = "admin"
Expand Down

0 comments on commit 59905ac

Please sign in to comment.