def METHOD_NAME(self, session_mock):
    sync_flow = self.create_sync_flow()
    sync_flow.get_physical_id = MagicMock()
    sync_flow.get_physical_id.return_value = "PhysicalApi1"
    sync_flow._get_definition_file = MagicMock()
    sync_flow._get_definition_file.return_value = "file.yaml"
    sync_flow.set_up()
    sync_flow._definition_uri = None
    with patch("builtins.open", mock_open(read_data='{"key": "value"}')) as mock_file:
        with self.assertRaises(MissingLocalDefinition):
            sync_flow.sync()