1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-25 19:17:22 +01:00
Files
mailinabox/test
Wolfgang Steitz a2350c4591 test: code cleanup
2017-02-02 16:50:39 +01:00
..
2017-02-02 15:41:52 +01:00
2017-02-02 16:35:59 +01:00
2017-02-02 15:41:52 +01:00
2017-02-02 15:41:52 +01:00
2017-02-02 16:50:39 +01:00
2017-02-02 16:50:39 +01:00
2017-02-02 16:50:39 +01:00
2017-02-02 15:41:52 +01:00
2017-02-02 15:41:52 +01:00

This is the mailinabox test suite. It uses the excellent pytest module to check the functionality of the different services.

Usage

start-up a vagrant box

vagrant up

install test requirements (using a virtualenv is highly recommended)

pip install -r requirements.txt

run the tests

pytest

to just run a subset of the tests (e.g. the ssh related ones):

pytest test_ssh.py

Contributing

pytest auto-discovers all tests in this directory. The test functions need to be named "test_..." and there needs to be at least one assert statement.