Skip to content

Commit

Permalink
Apply nit
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfeickert committed Oct 16, 2021
1 parent 10dfc9f commit cefe78b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_custom_mods.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def test_custom_mods():
modifier_set = {custom_applicator.name: (custom_builder, custom_applicator)}
modifier_set.update(**pyhf.modifiers.histfactory_set)

m = pyhf.Model(
model = pyhf.Model(
{
'channels': [
{
Expand All @@ -71,16 +71,16 @@ def test_custom_mods():
poi_name='k1',
validate=False,
)
assert m
assert 'k1' in m.config.parameters
assert model
assert 'k1' in model.config.parameters


def test_missing_poi():
modifier_set = {custom_applicator.name: (custom_builder, custom_applicator)}
modifier_set.update(**pyhf.modifiers.histfactory_set)

with pytest.raises(exceptions.InvalidModel):
m = pyhf.Model(
model = pyhf.Model(
{
'channels': [
{
Expand All @@ -106,4 +106,4 @@ def test_missing_poi():
poi_name='non_existent_poi',
validate=False,
)
assert m
assert model

0 comments on commit cefe78b

Please sign in to comment.