We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
test_variables.test_variable_formula_content
1 parent a01c3d5 commit 90ba91dCopy full SHA for 90ba91d
1 file changed
tests/web_api/test_variables.py
@@ -264,7 +264,9 @@ def test_variable_formula_github_link(test_client):
264
assert re.match(GITHUB_URL_REGEX, variable['formulas']['0001-01-01']['source'])
265
266
267
-def test_variable_formula_content():
+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'))
270
content = variable['formulas']['0001-01-01']['content']
271
assert "def formula(person, period, parameters):" in content
272
assert "return person(\"salary\", period) * parameters(period).taxes.income_tax_rate" in content
0 commit comments