Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Commit

Permalink
Fix plugin tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davehunt committed Aug 1, 2018
1 parent f247218 commit 484da40
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

from pypom import Region
from pypom import Region, hookimpl


def test_after_wait_for_page_to_load(page):
log = []

class Plugin:
@hookimpl
def pypom_after_wait_for_page_to_load(self, page):
log.append(1)

@hookimpl
def pypom_after_wait_for_region_to_load(self, region):
log.append(2)

Expand Down

0 comments on commit 484da40

Please sign in to comment.