Skip to content

Commit

Permalink
Move scripts module; update test case
Browse files Browse the repository at this point in the history
  • Loading branch information
drdavella committed Oct 25, 2023
1 parent 9f53a04 commit bf88736
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[run]
source = codemodder
omit =
*/codemodder/scripts/*

[paths]
codemodder =
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies = [

[project.scripts]
codemodder = "codemodder.codemodder:main"
generate-docs = 'scripts.generate_docs:main'
generate-docs = 'codemodder.scripts.generate_docs:main'


[project.entry-points.codemods]
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions tests/test_codemod_docs.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import pytest

from codemodder.registry import load_registered_codemods
from codemodder.scripts.generate_docs import METADATA


def pytest_generate_tests(metafunc):
Expand All @@ -18,3 +19,4 @@ def test_load_codemod_docs_info(codemod):
"Merge After Cursory Review",
"Merge Without Review",
)
assert codemod.name in METADATA

0 comments on commit bf88736

Please sign in to comment.