Add a test for :open with -s

This commit is contained in:
Florian Bruhin 2017-03-27 07:09:55 +02:00
parent 43090d146b
commit a8bc531eee

View File

@ -17,5 +17,18 @@
# You should have received a copy of the GNU General Public License
# along with qutebrowser. If not, see <http://www.gnu.org/licenses/>.
import logging
import pytest_bdd as bdd
bdd.scenarios('open.feature')
def test_open_s(quteproc, ssl_server):
"""Test :open with -s."""
quteproc.set_setting('network', 'ssl-strict' , 'false')
quteproc.send_cmd(':open -s http://localhost:{}/'.format(ssl_server.port))
quteproc.mark_expected(category='message',
loglevel=logging.ERROR,
message="Certificate error: *")
quteproc.wait_for_load_finished('/', port=ssl_server.port, https=True,
load_status='warn')