File: README.rst

package info (click to toggle)
python-bleach 6.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,356 kB
  • sloc: python: 14,626; sh: 61; makefile: 51
file content (28 lines) | stat: -rw-r--r-- 625 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
============
Test website
============

This holds infrastructure for running Bleach regression tests in a browser.


Usage
=====

From the repository root:

1. Generate the test cases::

      python tests_website/data_to_json.py tests/data > tests_website/testcases.json

2. Run the test server as a background process::

      cd tests_website && python server.py &

   You could also run it in a separate terminal by omitting the ``&`` at the
   end.

3. Open the page in browsers Python can find on your machine::

      python tests_website/open_test_page.py

4. Go through the web pages and inspect the bleached HTML.