@staticmethod<EOL><INDENT>def calculate_dependencies():<DEDENT>
order = []<EOL>for g in toposort(merge_dicts(dependencies, soft_dependencies)):<EOL><INDENT>for t in sorted(g, key=lambda x: (priorities[x], x)):<EOL><INDENT>order.append(t)<EOL><DEDENT><DEDENT>return order<EOL>
Calculate test dependencies
        First do a topological sorting based on the dependencies.
        Then sort the different dependency groups based on priorities.