コード例 #1
0
    def test_redirects_to_client_boot_script(self, pyramid_request):
        pyramid_request.feature.flags["embed_cachebuster"] = False

        rsp = client.embed_redirect(pyramid_request)

        assert isinstance(rsp, HTTPFound)
        assert rsp.location == "http://example.com/client_url"
コード例 #2
0
    def test_adds_cachebuster(self, pyramid_request):
        pyramid_request.feature.flags["embed_cachebuster"] = True

        rsp = client.embed_redirect(pyramid_request)

        assert isinstance(rsp, HTTPFound)
        assert "?cachebuster=" in rsp.location
コード例 #3
0
    def test_redirects_to_client_boot_script(self, pyramid_request):
        pyramid_request.feature.flags["embed_cachebuster"] = False

        rsp = client.embed_redirect(pyramid_request)

        assert isinstance(rsp, HTTPFound)
        assert rsp.location == "https://cdn.hypothes.is/hypothesis"
コード例 #4
0
ファイル: client_test.py プロジェクト: chinmaygghag/h
    def test_adds_cachebuster(self, pyramid_request):
        pyramid_request.feature.flags['embed_cachebuster'] = True

        rsp = client.embed_redirect(pyramid_request)

        assert isinstance(rsp, HTTPFound)
        assert '?cachebuster=' in rsp.location
コード例 #5
0
ファイル: client_test.py プロジェクト: chinmaygghag/h
    def test_redirects_to_client_boot_script(self, pyramid_request):
        pyramid_request.feature.flags['embed_cachebuster'] = False

        rsp = client.embed_redirect(pyramid_request)

        assert isinstance(rsp, HTTPFound)
        assert rsp.location == 'https://cdn.hypothes.is/hypothesis'
コード例 #6
0
    def test_redirects_to_client_boot_script(self, pyramid_request):
        rsp = client.embed_redirect(pyramid_request)

        assert isinstance(rsp, HTTPFound)
        assert rsp.location == 'https://cdn.hypothes.is/hypothesis'
コード例 #7
0
    def test_redirects_to_client_boot_script(self, pyramid_request):
        rsp = client.embed_redirect(pyramid_request)

        assert isinstance(rsp, HTTPFound)
        assert rsp.location == "http://example.com/client_url"
コード例 #8
0
ファイル: client_test.py プロジェクト: gnott/h
    def test_redirects_to_client_boot_script(self, pyramid_request):
        rsp = client.embed_redirect(pyramid_request)

        assert isinstance(rsp, HTTPFound)
        assert rsp.location == 'https://cdn.hypothes.is/hypothesis'