Skip to content
This repository was archived by the owner on Mar 13, 2024. It is now read-only.

Commit 643b08e

Browse files
committed
fix tests
1 parent 76188cd commit 643b08e

File tree

6 files changed

+11
-6
lines changed

6 files changed

+11
-6
lines changed

.github/workflows/code.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,11 @@ jobs:
164164
- name: Install sdist in a venv and check cli works
165165
# ${GITHUB_REPOSITORY##*/} is the repo name without org
166166
# Replace this with the cli command if different to the repo name
167+
# (In the python3-pip-skeleton-cli this is already renamed)
167168
run: |
168169
python -m pip install --upgrade pip
169170
python -m pip install build_files/dist/*.gz
170-
${GITHUB_REPOSITORY##*/} --version
171+
python3-pip-skeleton --version
171172
172173
release:
173174
# upload to PyPI and make a release on every tag
@@ -193,4 +194,4 @@ jobs:
193194
env:
194195
TWINE_USERNAME: __token__
195196
TWINE_PASSWORD: ${{ secrets.pypi_token }}
196-
run: pipx run twine upload artifacts/dist/*
197+
run: pipx run twine upload dist/*

docs/how-to.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ Practical step-by-step guides for the more experienced user.
99
:caption: How-to Guides
1010

1111
how-to/contributing
12+
how-to/existing
13+
how-to/update
14+
how-to/excalidraw

docs/reference.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ Practical step-by-step guides for the more experienced user.
88
.. toctree::
99
:caption: Reference
1010

11-
reference/api
1211
Releases <https://github.com/epics-containers/python3-pip-skeleton/releases>
1312
Index <genindex.html#http://>
1413

src/python3_pip_skeleton/__main__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ def main(args=None):
257257
args = parser.parse_args(args)
258258
args.func(args)
259259

260+
260261
# test with: python -m python3_pip_skeleton
261262
if __name__ == "__main__":
262263
main()

tests/container_tests.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@ pipdeptree
1515
# ensure non-zero length requirements.txt
1616
echo "# runtime dependencies" >> requirements.txt
1717

18+
git config --global user.email "[email protected]"
19+
git config --global user.name "Your Name"
20+
1821
pytest tests

tests/test_dls_python3_skeleton.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,9 @@ def test_new_module(tmp_path: Path):
7171
check_output(".venv/bin/python", "-m", "pytest", module / "tests", cwd=module)
7272
out = ctx.value.args[0]
7373
print(out)
74-
assert "6 failed, 4 passed" in out
74+
assert "4 failed, 1 passed" in out
7575
assert "Please change description in ./setup.cfg" in out
7676
assert "Please change ./README.rst" in out
77-
assert "Please change ./docs/reference/api.rst" in out
78-
assert "Please delete ./docs/how-to/accomplish-a-task.rst" in out
7977
assert "Please delete ./docs/explanations/why-is-something-so.rst" in out
8078

8179

0 commit comments

Comments
 (0)