Skip to content

Commit 90ba91d

Browse files
Fix failing test caused by #987 refactoring of test_variables.test_variable_formula_content
1 parent a01c3d5 commit 90ba91d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/web_api/test_variables.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,9 @@ def test_variable_formula_github_link(test_client):
264264
assert re.match(GITHUB_URL_REGEX, variable['formulas']['0001-01-01']['source'])
265265

266266

267-
def test_variable_formula_content():
267+
def test_variable_formula_content(test_client):
268+
variable_response = test_client.get('/variable/income_tax')
269+
variable = json.loads(variable_response.data.decode('utf-8'))
268270
content = variable['formulas']['0001-01-01']['content']
269271
assert "def formula(person, period, parameters):" in content
270272
assert "return person(\"salary\", period) * parameters(period).taxes.income_tax_rate" in content

0 commit comments

Comments
 (0)