Skip to content

Commit cadfc5d

Browse files
authored
Write patch ID to DB (#156)
1 parent 102b1a4 commit cadfc5d

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

snooty/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ def _generate_build_identifiers(args: Dict[str, Optional[str]]) -> BuildIdentifi
240240
identifiers = {}
241241

242242
identifiers["commit_hash"] = args["--commit"]
243+
identifiers["patch_id"] = args["--patch"]
243244

244245
return identifiers
245246

snooty/test_postprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
@pytest.fixture(scope="module")
1616
def backend() -> Backend:
1717
backend = Backend()
18-
build_identifiers: BuildIdentifierSet = {"commit_hash": "123456"}
18+
build_identifiers: BuildIdentifierSet = {"commit_hash": "123456", "patch_id": "678"}
1919
with Project(
2020
Path("test_data/test_postprocessor"), backend, build_identifiers
2121
) as project:

snooty/test_project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from .util_test import check_ast_testing_string
1313
from . import n
1414

15-
build_identifiers: BuildIdentifierSet = {"commit_hash": "123456"}
15+
build_identifiers: BuildIdentifierSet = {"commit_hash": "123456", "patch_id": "789"}
1616

1717

1818
@dataclass

0 commit comments

Comments
 (0)