Spaces:
Runtime error
Runtime error
Download pm4py/tests/imp_everything.py from linpershey/process_mining: direct link, hf CLI and curl.
- Browser
- Download file 530 Bytes
-
https://huggingface.co/spaces/linpershey/process_mining/resolve/main/pm4py/tests/imp_everything.py
- Command line
-
hf download hf://spaces/linpershey/process_mining/pm4py/tests/imp_everything.py
-
curl -L -o imp_everything.py https://huggingface.co/spaces/linpershey/process_mining/resolve/main/pm4py/tests/imp_everything.py
530 Bytes
| import os | |
| import unittest | |
| class Pm4pyImportPackageTest(unittest.TestCase): | |
| def test_importeverything(self): | |
| # to avoid static method warnings in tests, | |
| # that by construction of the unittest package have to be expressed in such way | |
| self.dummy_variable = "dummy_value" | |
| import pm4py | |
| log = pm4py.objects.log.importer.xes.importer.apply( | |
| os.path.join("input_data", "running-example.xes")) | |
| self.assertEqual(len(log), 6) | |
| if __name__ == "__main__": | |
| unittest.main() | |