Skip to content

Add documentation tests#9

Merged
SmartMonkey-git merged 5 commits intoSmartMonkey-git:mainfrom
ielis:dd/setup-documentation-tests
Aug 2, 2025
Merged

Add documentation tests#9
SmartMonkey-git merged 5 commits intoSmartMonkey-git:mainfrom
ielis:dd/setup-documentation-tests

Conversation

@ielis
Copy link
Collaborator

@ielis ielis commented Aug 1, 2025

The PR sets up the documentation tests, adds a README section about tests, and an example doctest.

@SmartMonkey-git I also changed the heading level of Continuous Delivery to ##, it seemed more appropriate.

Copy link
Owner

@SmartMonkey-git SmartMonkey-git left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor changes.
Otherwise, awsome! Thank you for your contribution. 👍 ❤️

>>> foo()
True

```
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The way you phrased it, it sounds like the code snipped is imporant. However, I think what you actually wanted to make is an example on how to write a doctest, right?

So, maybe:

Suggested change
```
the most imporant functionality. For example snippets like these will be executed by pytest:
```python
>>> from project_name.foo import foo
>>> foo()
True

ielis

This comment was marked as off-topic.

@ielis
Copy link
Collaborator Author

ielis commented Aug 2, 2025

@SmartMonkey-git thanks for the review and the suggestions. I applied them (plus a minor rewrite) and I removed the pydoc example (it's probably too niche for the template).

Please let me know if the revised version looks OK and feel free to merge if yes.

Thank you!

@SmartMonkey-git SmartMonkey-git merged commit 3a227de into SmartMonkey-git:main Aug 2, 2025
3 checks passed
@ielis ielis deleted the dd/setup-documentation-tests branch August 3, 2025 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants