from wolis.test_case import WolisTestCase

class SearchBackendPostgresTest(WolisTestCase):
    def test_set_search_backend(self):
        self.login('morpheus', 'morpheus')
        self.acp_login('morpheus', 'morpheus')
        
        self.change_acp_knob(
            link_text='Search settings',
            check_page_text='Here you can define what search backend will be used',
            name='search_type',
            value='phpbb_search_fulltext_postgres',
        )

if __name__ == '__main__':
    import unittest
    unittest.main()

from wolis.test_case import WolisTestCase

class SearchBackendPostgresTest(WolisTestCase):
    def test_set_search_backend(self):
        self.login('morpheus', 'morpheus')
        self.acp_login('morpheus', 'morpheus')
        
        self.change_acp_knob(
            link_text='Search settings',
            check_page_text='Here you can define what search backend will be used',
            name='config[search_type]',
            value='phpbb_search_fulltext_postgres',
            confirm=True,
        )

if __name__ == '__main__':
    import unittest
    unittest.main()

Make postgres search backend test actually change search backend
Make postgres search backend test actually change search backend

  from wolis.test_case import WolisTestCase
  
  class SearchBackendPostgresTest(WolisTestCase):
      def test_set_search_backend(self):
          self.login('morpheus', 'morpheus')
          self.acp_login('morpheus', 'morpheus')
          
          self.change_acp_knob(
              link_text='Search settings',
              check_page_text='Here you can define what search backend will be used',
-             name='search_type',
+             name='config[search_type]',
              value='phpbb_search_fulltext_postgres',
+             confirm=True,
          )
  
  if __name__ == '__main__':
      import unittest
      unittest.main()
  
Make postgres search backend test actually change search backend
## Code Before:
from wolis.test_case import WolisTestCase

class SearchBackendPostgresTest(WolisTestCase):
    def test_set_search_backend(self):
        self.login('morpheus', 'morpheus')
        self.acp_login('morpheus', 'morpheus')
        
        self.change_acp_knob(
            link_text='Search settings',
            check_page_text='Here you can define what search backend will be used',
            name='search_type',
            value='phpbb_search_fulltext_postgres',
        )

if __name__ == '__main__':
    import unittest
    unittest.main()

## Instruction:
Make postgres search backend test actually change search backend
## Code After:
from wolis.test_case import WolisTestCase

class SearchBackendPostgresTest(WolisTestCase):
    def test_set_search_backend(self):
        self.login('morpheus', 'morpheus')
        self.acp_login('morpheus', 'morpheus')
        
        self.change_acp_knob(
            link_text='Search settings',
            check_page_text='Here you can define what search backend will be used',
            name='config[search_type]',
            value='phpbb_search_fulltext_postgres',
            confirm=True,
        )

if __name__ == '__main__':
    import unittest
    unittest.main()
