From e31ccec75d9a4cc4338d6733d22dbdc1635b4a57 Mon Sep 17 00:00:00 2001 From: martinbednar Date: Mar 07 2022 13:01:08 +0000 Subject: Integration tests: Delete referrer test. The referrer is not spoofed anymore. --- diff --git a/tests/integration_tests/testing/tests_definition/test_02_referrer.py b/tests/integration_tests/testing/tests_definition/test_02_referrer.py deleted file mode 100644 index 1eb98b7..0000000 --- a/tests/integration_tests/testing/tests_definition/test_02_referrer.py +++ /dev/null @@ -1,43 +0,0 @@ -# -# JShelter is a browser extension which increases level -# of security, anonymity and privacy of the user while browsing the -# internet. -# -# Copyright (C) 2020 Martin Bednar -# -# SPDX-License-Identifier: GPL-3.0-or-later -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -# - -import pytest - -from values_getters import get_referrer - - -## Setup method - it is run before referrer test execution starts. -# -# This setup method initialize variable referrer that contains current data about referrer and -# this variable is provided to referrer test and value in referrer variable is compared with expected values. -@pytest.fixture(scope='module', autouse=True) -def referrer(browser): - return get_referrer(browser.driver) - - -## Test referrer - where the page was navigated from. -def test_referrer(browser, referrer, expected): - if expected.referrer == 'REAL VALUE': - assert referrer == browser.real.referrer - else: - assert referrer == expected.referrer