tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

conftest.py (502B)


      1 import pytest
      2 
      3 
      4 @pytest.fixture
      5 def get_installer(request):
      6    def _get_installer(extension):
      7        """Get path to the installer for the specified extension."""
      8        stub_dir = request.node.fspath.dirpath("installer_stubs")
      9 
     10        # We had to remove firefox.exe since it is not valid for mozinstall 1.12 and higher
     11        # Bug 1157352 - We should grab a firefox.exe from the build process or download it
     12        return stub_dir.join(f"firefox.{extension}").strpath
     13 
     14    return _get_installer