Add a test for :open with -s
This commit is contained in:
parent
43090d146b
commit
a8bc531eee
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user