comparison doc/contribuing/testing.rst @ 3431:5d7569378914

doc (testing): typos
author Goffi <goffi@goffi.org>
date Fri, 04 Dec 2020 12:27:38 +0100
parents 4ba31dd1f0f5
children b166a59b1724
comparison
equal deleted inserted replaced
3430:4ba31dd1f0f5 3431:5d7569378914
109 ``fake_file.new_dest_file()`` will return a Path to a randomly named destination file, 109 ``fake_file.new_dest_file()`` will return a Path to a randomly named destination file,
110 and ``fake_file.get_dest_hash(dest_file_path)`` will generate its hash once written. 110 and ``fake_file.get_dest_hash(dest_file_path)`` will generate its hash once written.
111 111
112 ``sent_emails`` 112 ``sent_emails``
113 When used, a fake SMTP server (already configured in container's ``sat.conf``) will be 113 When used, a fake SMTP server (already configured in container's ``sat.conf``) will be
114 launched if it's not already, and all message sent to it since the beginning of the test 114 launched if it's not already, and all messages sent to it since the beginning of the test
115 will be available in the given list. Message are subclasses of 115 will be available in the given list. Message are subclasses of
116 ``email.message.EmailMessage`` with the extra properties ``from_``, ``to``, ``subject`` 116 ``email.message.EmailMessage`` with the extra properties ``from_``, ``to``, ``subject``
117 and ``body`` available for easy access to their content. 117 and ``body`` available for easy access to their content.
118 118
119 The SMTP server is terminated at the end of the test session. 119 The SMTP server is terminated at the end of the test session.
205 $ ./run_e2e.py -k user_can_create_account --dev-mode 205 $ ./run_e2e.py -k user_can_create_account --dev-mode
206 206
207 …then to go into the ``sat`` container and work with the browser (to be run in ``docker`` 207 …then to go into the ``sat`` container and work with the browser (to be run in ``docker``
208 directory)…:: 208 directory)…::
209 209
210 $ /sbin/docker-compose -f docker-compose_e2e.yml exec sat /bin/bash 210 $ docker-compose -f docker-compose_e2e.yml exec sat /bin/bash
211 211
212 …and, inside the container, you can now run ``python3`` and enter instruction prints at 212 …and, inside the container, you can now run ``python3`` and enter instruction prints at
213 the end of the test session. 213 the end of the test session.