https://github.com/jacebrowning/sappy
Single-page application server for end-to-end testing.
https://github.com/jacebrowning/sappy
command-line end-to-end-testing python single-page-applications testing
Last synced: 2 months ago
JSON representation
Single-page application server for end-to-end testing.
- Host: GitHub
- URL: https://github.com/jacebrowning/sappy
- Owner: jacebrowning
- License: mit
- Created: 2016-06-09T13:50:41.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2023-10-17T20:44:37.000Z (over 1 year ago)
- Last Synced: 2025-04-14T01:09:53.583Z (2 months ago)
- Topics: command-line, end-to-end-testing, python, single-page-applications, testing
- Language: Python
- Homepage: http://sappy.readthedocs.io
- Size: 579 KB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
[](https://github.com/jacebrowning/sappy/actions)
[](https://ci.appveyor.com/project/jacebrowning/sappy)
[](https://codecov.io/gh/jacebrowning/sappy)
[](https://pypi.org/project/sappy)
[](https://pypi.org/project/sappy)
[](https://pypistats.org/packages/sappy)# Overview
Sappy is a simple, single-page application (SPA) web server for end-to-end testing.
The Python standard library includes a web server that works great for serving up files:
```sh
$ python3 -m http.server 8080
Serving HTTP on 0.0.0.0 port 8080 ...$ curl http://localhost:8080/index.html
Example Index
...
```But when used to serve up single-page applications, a `404` is returned whenever any page other than the index is accessed directly:
```sh
$ curl http://localhost:8080/loginError 404 (Not Found)