Skip to content

Commit

Permalink
chore(test): disable test on win32 (#1273)
Browse files Browse the repository at this point in the history
  • Loading branch information
bonjourmauko committed Oct 18, 2024
1 parent 4b60053 commit 4e49bc8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/core/test_yaml.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import subprocess
import sys

import pytest

Expand Down Expand Up @@ -118,6 +119,9 @@ def test_shell_script_with_reform() -> None:
subprocess.check_call(command, stdout=devnull, stderr=devnull)


# TODO(Mauko Quiroga-Alvarado): Fix this test
# https://github.com/openfisca/openfisca-core/issues/962
@pytest.mark.skipif(sys.platform == "win32", reason="Does not work on Windows.")
def test_shell_script_with_extension() -> None:
tests_dir = os.path.join(openfisca_extension_template.__path__[0], "tests")
command = [
Expand Down
4 changes: 4 additions & 0 deletions tests/web_api/test_parameters.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import re
import sys
from http import client

import pytest
Expand Down Expand Up @@ -44,6 +45,9 @@ def test_legacy_parameter_route(test_client) -> None:
assert response.status_code == client.OK


# TODO(Mauko Quiroga-Alvarado): Fix this test
# https://github.com/openfisca/openfisca-core/issues/962
@pytest.mark.skipif(sys.platform == "win32", reason="Does not work on Windows.")
def test_parameter_values(test_client) -> None:
response = test_client.get("/parameter/taxes/income_tax_rate")
parameter = json.loads(response.data)
Expand Down
7 changes: 7 additions & 0 deletions tests/web_api/test_variables.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import re
import sys
from http import client

import pytest
Expand Down Expand Up @@ -70,6 +71,9 @@ def test_input_variable_value(expected_values, input_variable_response) -> None:
check_input_variable_value(*expected_values, input_variable=input_variable)


# TODO(Mauko Quiroga-Alvarado): Fix this test
# https://github.com/openfisca/openfisca-core/issues/962
@pytest.mark.skipif(sys.platform == "win32", reason="Does not work on Windows.")
def test_input_variable_github_url(test_client) -> None:
input_variable_response = test_client.get("/variable/income_tax")
input_variable = json.loads(input_variable_response.data.decode("utf-8"))
Expand Down Expand Up @@ -102,6 +106,9 @@ def test_variable_value(expected_values, test_client) -> None:
check_variable_value(*expected_values, variable=variable)


# TODO(Mauko Quiroga-Alvarado): Fix this test
# https://github.com/openfisca/openfisca-core/issues/962
@pytest.mark.skipif(sys.platform == "win32", reason="Does not work on Windows.")
def test_variable_formula_github_link(test_client) -> None:
variable_response = test_client.get("/variable/income_tax")
variable = json.loads(variable_response.data.decode("utf-8"))
Expand Down

0 comments on commit 4e49bc8

Please sign in to comment.