(cls)
| 44 | |
| 45 | @classmethod |
| 46 | def init_class_fixtures(cls): |
| 47 | super(ExamplesTests, cls).init_class_fixtures() |
| 48 | |
| 49 | register('test', lambda *args: None) |
| 50 | cls.add_class_callback(partial(unregister, 'test')) |
| 51 | |
| 52 | with tarfile.open(test_resource_path('example_data.tar.gz')) as tar: |
| 53 | tar.extractall(cls.tmpdir.path) |
| 54 | |
| 55 | cls.expected_perf = dataframe_cache( |
| 56 | cls.tmpdir.getpath( |
| 57 | 'example_data/expected_perf/%s' % |
| 58 | pd.__version__.replace('.', '-'), |
| 59 | ), |
| 60 | serialization='pickle', |
| 61 | ) |
| 62 | |
| 63 | cls.no_benchmark_expected_perf = { |
| 64 | example_name: cls._no_benchmark_expectations_applied( |
| 65 | expected_perf.copy() |
| 66 | ) |
| 67 | for example_name, expected_perf in cls.expected_perf.items() |
| 68 | } |
| 69 | |
| 70 | @staticmethod |
| 71 | def _no_benchmark_expectations_applied(expected_perf): |
nothing calls this directly
no test coverage detected