# Path: slicer_cli_web/models/parser.py
# def parse_xml_desc(item, desc, user):
#     return _parse_xml_desc(item, user, desc['xml'])
# 
# def parse_json_desc(item, desc, user):
#     data = json.loads(desc['json'])
# 
#     return _parse_json_desc(item, user, data)
# 
# def parse_yaml_desc(item, desc, user):
#     data = yaml.safe_load(desc['yaml'])
# 
#     return _parse_json_desc(item, user, data)


import pytest
import re
import os
from slicer_cli_web.models.parser import parse_xml_desc, parse_json_desc, parse_yaml_desc
        from girder.models.item import Item



def read_file(name):
    with open(os.path.join(os.path.dirname(__file__), 'data', name)) as f:
        return f.read()



# Path: slicer_cli_web/models/parser.py
# def parse_xml_desc(item, desc, user):
#     return _parse_xml_desc(item, user, desc['xml'])
# 
# def parse_json_desc(item, desc, user):
#     data = json.loads(desc['json'])
# 
#     return _parse_json_desc(item, user, data)
# 
# def parse_yaml_desc(item, desc, user):
#     data = yaml.safe_load(desc['yaml'])
# 
#     return _parse_json_desc(item, user, data)


# Path: tests/test_parser.py
import pytest
import re
import os
from slicer_cli_web.models.parser import parse_xml_desc, parse_json_desc, parse_yaml_desc
        from girder.models.item import Item




def read_file(name):
    with open(os.path.join(os.path.dirname(__file__), 'data', name)) as f:
        return f.read()



def read_example_file(example, suffix):