Commit 289c8a2 1 parent e1c6600 commit 289c8a2 Copy full SHA for 289c8a2
File tree 3 files changed +7
-5
lines changed
3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 6
6
7
7
8
8
@pytest .fixture
9
- def pages_setup ( ):
10
- if db . pages_table is None :
11
- db . init_db ( )
9
+ def clean_db ( reset_db , migrate_db_for ):
10
+ reset_db ()
11
+ migrate_db_for ( "pages" )
12
12
13
13
14
14
@pytest .fixture
Original file line number Diff line number Diff line change 3
3
from ckan .tests import factories , helpers
4
4
5
5
6
- @pytest .mark .usefixtures ("clean_db" , "pages_setup" )
6
+ @pytest .mark .usefixtures ("with_plugins" , "clean_db" )
7
+ @pytest .mark .ckan_config ("ckan.plugins" , "pages" )
7
8
class TestPagesActions :
8
9
def test_pages_create_action (self , app ):
9
10
user = factories .User ()
Original file line number Diff line number Diff line change 14
14
ckan_29_or_higher = toolkit .check_ckan_version (u'2.9' )
15
15
16
16
17
- @pytest .mark .usefixtures ("clean_db" , "pages_setup" )
17
+ @pytest .mark .usefixtures ("with_plugins" , "clean_db" )
18
+ @pytest .mark .ckan_config ("ckan.plugins" , "pages" )
18
19
class TestPages ():
19
20
20
21
def test_create_page (self , app ):
You can’t perform that action at this time.
0 commit comments