def test_default_option_values(self): self.mock(skool2html, 'run', mock_run) infiles = ['game1.ref', 'game2.skool'] skool2html.main(infiles) files, options = run_args self.assertEqual(files, infiles) self.assertTrue(options.verbose) self.assertFalse(options.show_timings) self.assertEqual(options.config_specs, []) self.assertFalse(options.new_images) self.assertEqual(options.case, None) self.assertEqual(options.base, None) self.assertEqual(options.files, 'BbcdGgimoPpty') self.assertEqual(options.pages, []) self.assertEqual(options.output_dir, None)
def run_skool2html(): options = '-d {}/build/html'.format(BACKTOSKOOL_HOME) skool2html.main(options.split() + sys.argv[1:] + [BTS_SKOOL])
def run_skool2html(): options = '-d {}/build/html'.format(JETSETWILLY_HOME) skool2html.main(options.split() + sys.argv[1:] + [JSW_SKOOL])
def run_skool2html(): options = '-d {}/build/html'.format(MANICMINER_HOME) skool2html.main(options.split() + sys.argv[1:] + [MM_SKOOL])
def run_skool2html(): options = '-ad {}/build/html'.format(ROM_HOME) skool2html.main(options.split() + sys.argv[1:] + [ROM_SKOOL])
def run_skool2html(): options = '-d {}/build/html'.format(CONTACTSAMCRUISE_HOME) skool2html.main(options.split() + sys.argv[1:] + [CSC_SKOOL])
def run_skool2html(): options = '-d {}/build/html'.format(HUNGRYHORACE_HOME) skool2html.main(options.split() + sys.argv[1:] + [HH_SKOOL])
def run_skool2html(): options = '-Had {}/build/html'.format(ROM_HOME) skool2html.main(options.split() + sys.argv[1:] + [ROM_SKOOL])
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2012-2013 Richard Dymond ([email protected]) # # This file is part of SkoolKit. # # SkoolKit is free software: you can redistribute it and/or modify it under the # terms of the GNU General Public License as published by the Free Software # Foundation, either version 3 of the License, or (at your option) any later # version. # # SkoolKit is distributed in the hope that it will be useful, 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 # SkoolKit. If not, see <http://www.gnu.org/licenses/>. import sys from skoolkit import skool2html, error, SkoolKitError try: skool2html.main(sys.argv[1:]) except SkoolKitError as e: error(e.args[0])
#!/usr/bin/env python3 # Copyright 2012-2013, 2017 Richard Dymond ([email protected]) # # This file is part of SkoolKit. # # SkoolKit is free software: you can redistribute it and/or modify it under the # terms of the GNU General Public License as published by the Free Software # Foundation, either version 3 of the License, or (at your option) any later # version. # # SkoolKit is distributed in the hope that it will be useful, 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 # SkoolKit. If not, see <http://www.gnu.org/licenses/>. import sys from skoolkit import skool2html, error, SkoolKitError try: skool2html.main(sys.argv[1:]) except SkoolKitError as e: error(e.args[0])