pintest-cli 0.2.8__tar.gz → 0.2.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pintest_cli-0.2.8 → pintest_cli-0.2.9}/PKG-INFO +1 -1
- {pintest_cli-0.2.8 → pintest_cli-0.2.9}/pintest/push_cache.py +1 -0
- {pintest_cli-0.2.8 → pintest_cli-0.2.9}/pintest/test_mapping_db_v2.py +2 -1
- {pintest_cli-0.2.8 → pintest_cli-0.2.9}/pintest_cli.egg-info/PKG-INFO +1 -1
- {pintest_cli-0.2.8 → pintest_cli-0.2.9}/setup.py +1 -1
- {pintest_cli-0.2.8 → pintest_cli-0.2.9}/README.md +0 -0
- {pintest_cli-0.2.8 → pintest_cli-0.2.9}/pintest/__init__.py +0 -0
- {pintest_cli-0.2.8 → pintest_cli-0.2.9}/pintest/build_mapping_iterative.py +0 -0
- {pintest_cli-0.2.8 → pintest_cli-0.2.9}/pintest/cli.py +0 -0
- {pintest_cli-0.2.8 → pintest_cli-0.2.9}/pintest/cloud_mapping_db.py +0 -0
- {pintest_cli-0.2.8 → pintest_cli-0.2.9}/pintest/config.py +0 -0
- {pintest_cli-0.2.8 → pintest_cli-0.2.9}/pintest/coverage_mapper.py +0 -0
- {pintest_cli-0.2.8 → pintest_cli-0.2.9}/pintest/git_diff_parser.py +0 -0
- {pintest_cli-0.2.8 → pintest_cli-0.2.9}/pintest/post_commit_hook.py +0 -0
- {pintest_cli-0.2.8 → pintest_cli-0.2.9}/pintest/pre_commit_hook.py +0 -0
- {pintest_cli-0.2.8 → pintest_cli-0.2.9}/pintest/pytest_plugin.py +0 -0
- {pintest_cli-0.2.8 → pintest_cli-0.2.9}/pintest/range_set.py +0 -0
- {pintest_cli-0.2.8 → pintest_cli-0.2.9}/pintest/update_mapping.py +0 -0
- {pintest_cli-0.2.8 → pintest_cli-0.2.9}/pintest_cli.egg-info/SOURCES.txt +0 -0
- {pintest_cli-0.2.8 → pintest_cli-0.2.9}/pintest_cli.egg-info/dependency_links.txt +0 -0
- {pintest_cli-0.2.8 → pintest_cli-0.2.9}/pintest_cli.egg-info/entry_points.txt +0 -0
- {pintest_cli-0.2.8 → pintest_cli-0.2.9}/pintest_cli.egg-info/requires.txt +0 -0
- {pintest_cli-0.2.8 → pintest_cli-0.2.9}/pintest_cli.egg-info/top_level.txt +0 -0
- {pintest_cli-0.2.8 → pintest_cli-0.2.9}/setup.cfg +0 -0
- {pintest_cli-0.2.8 → pintest_cli-0.2.9}/tests/__init__.py +0 -0
- {pintest_cli-0.2.8 → pintest_cli-0.2.9}/tests/test_git_diff_parser.py +0 -0
- {pintest_cli-0.2.8 → pintest_cli-0.2.9}/tests/test_new_feature.py +0 -0
- {pintest_cli-0.2.8 → pintest_cli-0.2.9}/tests/test_range_set.py +0 -0
|
@@ -15,6 +15,7 @@ class PushCache:
|
|
|
15
15
|
|
|
16
16
|
def _init_db(self):
|
|
17
17
|
"""Initialize the local push cache database schema."""
|
|
18
|
+
self.db_path.parent.mkdir(parents=True, exist_ok=True)
|
|
18
19
|
with sqlite3.connect(self.db_path) as conn:
|
|
19
20
|
conn.execute("PRAGMA journal_mode=WAL")
|
|
20
21
|
conn.execute("""
|
|
@@ -6,7 +6,7 @@ reducing 12M entries to ~100K ranges (99%+ reduction).
|
|
|
6
6
|
|
|
7
7
|
import sqlite3
|
|
8
8
|
from pathlib import Path
|
|
9
|
-
from typing import Set, List, Dict, Optional
|
|
9
|
+
from typing import Set, List, Dict, Optional, Tuple
|
|
10
10
|
from dataclasses import dataclass
|
|
11
11
|
from datetime import datetime
|
|
12
12
|
|
|
@@ -72,6 +72,7 @@ class TestMappingDBV2:
|
|
|
72
72
|
|
|
73
73
|
def connect(self):
|
|
74
74
|
"""Open database connection."""
|
|
75
|
+
self.db_path.parent.mkdir(parents=True, exist_ok=True)
|
|
75
76
|
self.conn = sqlite3.connect(str(self.db_path))
|
|
76
77
|
self.conn.row_factory = sqlite3.Row
|
|
77
78
|
|
|
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
|
|
|
5
5
|
|
|
6
6
|
setup(
|
|
7
7
|
name="pintest-cli",
|
|
8
|
-
version="0.2.
|
|
8
|
+
version="0.2.9",
|
|
9
9
|
description="Run only the tests affected by your code changes.",
|
|
10
10
|
long_description=long_description,
|
|
11
11
|
long_description_content_type="text/markdown",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|