Skip to content

Commit

Permalink
agenda: change property change test update
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Cafasso <noxdafox@gmail.com>
  • Loading branch information
noxdafox committed Dec 9, 2017
1 parent 795a2e5 commit 88eeb3b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/agenda_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_agenda_activation(self):
"""Agenda activation test."""
self.env.assert_string('(implied-fact implied-value)')

self.assertTrue(self.env.changed)
self.assertTrue(self.env.agenda_changed)

activation = tuple(self.env.activations())[0]

Expand All @@ -79,7 +79,7 @@ def test_agenda_activation_order(self):
self.env.build(DEFOTHERRULE)
self.env.assert_string('(implied-fact implied-value)')

self.assertTrue(self.env.changed)
self.assertTrue(self.env.agenda_changed)

activations = tuple(self.env.activations())

Expand All @@ -88,11 +88,11 @@ def test_agenda_activation_order(self):

activations[1].salience = 30

self.assertFalse(self.env.changed)
self.assertFalse(self.env.agenda_changed)

self.env.reorder()

self.assertTrue(self.env.changed)
self.assertTrue(self.env.agenda_changed)

activations = tuple(self.env.activations())

Expand All @@ -101,7 +101,7 @@ def test_agenda_activation_order(self):

self.env.refresh()

self.assertTrue(self.env.changed)
self.assertTrue(self.env.agenda_changed)

self.env.clear()

Expand Down

0 comments on commit 88eeb3b

Please sign in to comment.