From e7901c08de50e2a8d6c62daf5bad99703bd8e778 Mon Sep 17 00:00:00 2001 From: Roman Date: Tue, 9 Jul 2019 23:04:46 +0300 Subject: [PATCH] import path included in _class field --- sciunit/base.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sciunit/base.py b/sciunit/base.py index d75ba520..ab5ba81d 100644 --- a/sciunit/base.py +++ b/sciunit/base.py @@ -206,7 +206,14 @@ def _id(self): @property def _class(self): url = '' if self.url is None else self.url + + import_path = '{}.{}'.format( + self.__class__.__module__, + self.__class__.__name__ + ) + return {'name': self.__class__.__name__, + 'import_path': import_path, 'url': url} @property