def test_user_dir_contains_non_ascii():
	# NOTE we have to create the test this way because if it were defined globally,
	# USER_DIR would not be defined yet at the time the decorator is evaluated
	yield gui_test(timeout=60, use_dev_map=True, _user_dir=USER_DIR)(dummy)
Esempio n. 2
0
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the
# Free Software Foundation, Inc.,
# 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
# ###################################################

import os

from horizons.constants import PATHS, GROUND
from tests.gui import gui_test

editor_test = gui_test(additional_cmdline=["--edit-map", "development"])


@editor_test
def test_place_tiles(gui):
    """Place different tiles with different tile sizes."""

    gui.trigger('editor_settings', 'water')
    gui.cursor_click(27, 36, 'left')
    gui.cursor_click(27, 37, 'left')
    gui.cursor_click(27, 38, 'left')

    gui.trigger('editor_settings', 'size_2')
    gui.trigger('editor_settings', 'sand')
    gui.cursor_click(34, 34, 'left')
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the
# Free Software Foundation, Inc.,
# 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
# ###################################################

import os

from horizons.constants import EDITOR, GROUND, PATHS
from tests.gui import gui_test


editor_test = gui_test(additional_cmdline=["--edit-map", "development"])


@editor_test
def test_place_tiles(gui):
    """Place different tiles with different tile sizes."""

    gui.trigger("editor_settings", "water")
    gui.cursor_click(27, 36, "left")
    gui.cursor_click(27, 37, "left")
    gui.cursor_click(27, 38, "left")

    gui.trigger("editor_settings", "size_2")
    gui.trigger("editor_settings", "sand")
    gui.cursor_click(34, 34, "left")
Esempio n. 4
0
def test_user_dir_contains_non_ascii():
    # NOTE we have to create the test this way because if it were defined globally,
    # USER_DIR would not be defined yet at the time the decorator is evaluated
    yield gui_test(timeout=60, use_dev_map=True, _user_dir=USER_DIR)(dummy)