()
| 448 | |
| 449 | |
| 450 | def firefox(): |
| 451 | firefox_versions = json.loads(firefox_version_data()) |
| 452 | |
| 453 | latest_firefox = firefox_versions["LATEST_FIREFOX_VERSION"] |
| 454 | sha_linux = calculate_hash(firefox_linux(latest_firefox)) |
| 455 | sha_mac = calculate_hash(firefox_mac(latest_firefox)) |
| 456 | content = print_firefox(latest_firefox, "", sha_linux, sha_mac) |
| 457 | |
| 458 | beta_firefox = firefox_versions["LATEST_FIREFOX_RELEASED_DEVEL_VERSION"] |
| 459 | if latest_firefox != beta_firefox: |
| 460 | sha_linux = calculate_hash(firefox_linux(beta_firefox)) |
| 461 | sha_mac = calculate_hash(firefox_mac(beta_firefox)) |
| 462 | return content + print_firefox(beta_firefox, "beta_", sha_linux, sha_mac) |
| 463 | |
| 464 | |
| 465 | def firefox_version_data(): |
no test coverage detected