This repository has been archived by the owner on Apr 4, 2024. It is now read-only.
forked from diffplug/selfie
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a skeleton of the pytest plugin (#49)
- Loading branch information
Showing
17 changed files
with
1,171 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[tool.poetry] | ||
name = "example-pytest-selfie" | ||
version = "0.1.0" | ||
description = "An example project for using the pytest plugin for selfie snapshot testing." | ||
authors = ["Selina Delgado <[email protected]>","Harvir Sahota <[email protected]>","Ned Twigg <[email protected]>","Edwin Ye <[email protected]>"] | ||
license = "Apache-2.0" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.12" | ||
openai = "^1.0.0" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
ruff = "^0.3.0" | ||
pyright = "^1.1.350" | ||
pytest = "^8.0.0" | ||
selfie-lib = { path = "../selfie-lib", develop = true } | ||
pytest-selfie = { path = "../pytest-selfie", develop = true } | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from selfie_lib.ArrayMap import ArrayMap | ||
|
||
|
||
def test_simple(): | ||
test = ArrayMap.empty().plus("key", "value") | ||
assert test.__len__() == 1 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
============= | ||
pytest-selfie | ||
============= | ||
|
||
.. image:: https://img.shields.io/pypi/v/pytest-selfie.svg | ||
:target: https://pypi.org/project/pytest-selfie | ||
:alt: PyPI version | ||
|
||
.. image:: https://img.shields.io/pypi/pyversions/pytest-selfie.svg | ||
:target: https://pypi.org/project/pytest-selfie | ||
:alt: Python versions | ||
|
||
.. image:: https://github.com/nedtwigg/pytest-selfie/actions/workflows/main.yml/badge.svg | ||
:target: https://github.com/nedtwigg/pytest-selfie/actions/workflows/main.yml | ||
:alt: See Build Status on GitHub Actions | ||
|
||
A pytest plugin for selfie snapshot testing. | ||
|
||
--- | ||
|
||
This `pytest`_ plugin was generated with `Cookiecutter`_ along with `@hackebrot`_'s `cookiecutter-pytest-plugin`_ template. | ||
|
||
## Features | ||
|
||
- TODO | ||
|
||
## Requirements | ||
|
||
- TODO | ||
|
||
## Installation | ||
|
||
You can install "pytest-selfie" via `pip`_ from `PyPI`_:: | ||
|
||
$ pip install pytest-selfie | ||
|
||
## Usage | ||
|
||
- TODO | ||
|
||
## Contributing | ||
|
||
Contributions are very welcome. Tests can be run with `tox`\_, please ensure | ||
the coverage at least stays the same before you submit a pull request. | ||
|
||
## License | ||
|
||
Distributed under the terms of the `Apache Software License 2.0`\_ license, "pytest-selfie" is free and open source software | ||
|
||
## Issues | ||
|
||
If you encounter any problems, please `file an issue`\_ along with a detailed description. | ||
|
||
.. _`Cookiecutter`: https://github.com/audreyr/cookiecutter | ||
.. _`@hackebrot`: https://github.com/hackebrot | ||
.. _`MIT`: https://opensource.org/licenses/MIT | ||
.. _`BSD-3`: https://opensource.org/licenses/BSD-3-Clause | ||
.. _`GNU GPL v3.0`: https://www.gnu.org/licenses/gpl-3.0.txt | ||
.. _`Apache Software License 2.0`: https://www.apache.org/licenses/LICENSE-2.0 | ||
.. _`cookiecutter-pytest-plugin`: https://github.com/pytest-dev/cookiecutter-pytest-plugin | ||
.. _`file an issue`: https://github.com/nedtwigg/pytest-selfie/issues | ||
.. _`pytest`: https://github.com/pytest-dev/pytest | ||
.. _`tox`: https://tox.readthedocs.io/en/latest/ | ||
.. _`pip`: https://pypi.org/project/pip/ | ||
.. _`PyPI`: https://pypi.org/project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Welcome to pytest-selfie | ||
|
||
A pytest plugin for selfie snapshot testing. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
site_name: pytest-selfie | ||
site_description: A pytest plugin for selfie snapshot testing. | ||
site_author: Ned Twigg | ||
|
||
theme: readthedocs | ||
|
||
repo_url: https://github.com/nedtwigg/pytest-selfie | ||
|
||
pages: | ||
- Home: index.md |
Oops, something went wrong.