Skip to content

Commit

Permalink
rename testmon_url -> tmnet_url and bump to v2.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
tarpas committed Jun 9, 2023
1 parent 9733b1b commit d643653
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion testmon/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""PYTEST_DONT_REWRITE"""
VERSION = "2.0.9dev1"
VERSION = "2.0.9"
13 changes: 7 additions & 6 deletions testmon/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,12 +271,13 @@ def insert_test_file_fps(self, tests_deps_n_outcomes, exec_id=None):

test_execution_file_fps.append((te_id, fingerprint_id))
files_fshas.add((record["filename"], record["fsha"]))
cursor.executemany(
"INSERT INTO test_execution_file_fp VALUES (?, ?)",
test_execution_file_fps,
)
self.fetch_or_create_file_fp.cache_clear()
self.insert_into_suite_files_fshas(con, exec_id, files_fshas)
if test_execution_file_fps:
cursor.executemany(
"INSERT INTO test_execution_file_fp VALUES (?, ?)",
test_execution_file_fps,
)
self.fetch_or_create_file_fp.cache_clear()
self.insert_into_suite_files_fshas(con, exec_id, files_fshas)

def insert_into_suite_files_fshas(self, con, exec_id, files_fshas):
pass
Expand Down
8 changes: 4 additions & 4 deletions testmon/pytest_testmon.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def pytest_addoption(parser):

parser.addini("environment_expression", "environment expression", default="")
parser.addini("testmon_ignore_dependencies", "ignore dependencies", default=[])
parser.addini("testmon_url", "URL of the testmon.net api server.")
parser.addini("tmnet_url", "URL of the testmon.net api server.")
parser.addini("tmnet_api_key", "testmon api key")


Expand All @@ -135,14 +135,14 @@ def init_testmon_data(config):
ignore_dependencies_arg = config.getini("testmon_ignore_dependencies")
if type(ignore_dependencies_arg) in (list, tuple):
ignore_dependencies = ignore_dependencies_arg
elif ignore_dependencies_arg and "\n" in ignore_dependencies_arg:
elif "\n" in ignore_dependencies_arg:
ignore_dependencies = ignore_dependencies_arg.split("\n")
else:
ignore_dependencies = ignore_dependencies_arg
ignore_dependencies = None

system_packages = get_system_packages(ignore=ignore_dependencies)

url = config.getini("testmon_url")
url = config.getini("tmnet_url")
rpc_proxy = None

if config.testmon_config.tmnet or getattr(config, "tmnet", None):
Expand Down

0 comments on commit d643653

Please sign in to comment.