Description: Disable tests requiring local MicroPython runtime
 The runtime is only guaranteed to be available when the
 firmware-microbit-micropython package is installed as a
 build dependency. When using the firmware-microbit-micropython-dl runtime
 downloader this is not the case.
Author: Nick Morrott <knowledgejunkie@gmail.com>
Forwarded: not-needed
Last-Update: 2018-12-28
---
--- a/tests/test_uflash.py
+++ b/tests/test_uflash.py
@@ -101,6 +101,7 @@
     assert uflash.hexlify('') == ''
 
 
+@pytest.mark.skip(reason="requires local MicroPython runtime")
 def test_embed_hex():
     """
     Ensure the good case works as expected.
@@ -139,6 +140,7 @@
     assert ex.value.args[0] == 'MicroPython runtime hex required.'
 
 
+@pytest.mark.skip(reason="requires local MicroPython runtime")
 def test_extract():
     """
     The script should be returned as a string (if there is one).
@@ -149,6 +151,7 @@
     assert extracted == TEST_SCRIPT.decode('utf-8')
 
 
+@pytest.mark.skip(reason="requires local MicroPython runtime")
 def test_extract_sandwiched():
     """
     The script hex is packed with additional data above and bellow and should
@@ -171,6 +174,7 @@
     assert uflash.extract_script('invalid input') == ''
 
 
+@pytest.mark.skip(reason="requires local MicroPython runtime")
 def test_extract_no_python():
     """
     Ensure that if there's no Python in the input hex then just return an empty
@@ -284,6 +288,7 @@
     assert ex.value.args[0] == 'OS "foo" not supported.'
 
 
+@pytest.mark.skip(reason="requires local MicroPython runtime")
 def test_save_hex():
     """
     Ensure the good case works.
@@ -322,6 +327,7 @@
     assert ex.value.args[0] == 'The path to flash must be for a .hex file.'
 
 
+@pytest.mark.skip(reason="requires local MicroPython runtime")
 def test_flash_no_args():
     """
     The good case with no arguments to the flash() function. When it's
@@ -339,6 +345,7 @@
             assert mock_save.call_args[0][1] == expected_path
 
 
+@pytest.mark.skip(reason="requires local MicroPython runtime")
 def test_flash_has_python_no_path_to_microbit():
     """
     The good case with a path to a Python file. When it's possible to find a
@@ -360,6 +367,7 @@
             assert mock_save.call_args[0][1] == expected_path
 
 
+@pytest.mark.skip(reason="requires local MicroPython runtime")
 def test_flash_with_path_to_multiple_microbits():
     """
     Flash the referenced paths to the micro:bit with a hex file generated from
@@ -383,6 +391,7 @@
         assert mock_save.call_args_list[1][0][1] == expected_path
 
 
+@pytest.mark.skip(reason="requires local MicroPython runtime")
 def test_flash_with_path_to_microbit():
     """
     Flash the referenced path to the micro:bit with a hex file generated from
@@ -419,6 +428,7 @@
                     mock_save.assert_called_once_with('foo', expected_hex_path)
 
 
+@pytest.mark.skip(reason="requires local MicroPython runtime")
 def test_flash_with_python_script():
     """
     If a byte representation of a Python script is passed into the function it
@@ -432,6 +442,7 @@
                 mock_hexlify.assert_called_once_with(python_script, False)
 
 
+@pytest.mark.skip(reason="requires local MicroPython runtime")
 def test_flash_cannot_find_microbit():
     """
     Ensure an IOError is raised if it is not possible to find the micro:bit.
