Impact 2024: The Industrial Data and AI Conference for and by Users | Nominate Speakers Now for a Ch...
Yeah I have tried by debugging after calling main function it’s not coming back.from cognite.extractorutils import Extractordef main() -> None: """ Main entrypoint """ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) config_values_vault.set_vara() with Extractor( name="SAP_Extractor", description="An extractor to extract asset hierarchy from SAP based on root node", config_class=SapConfig, # version=__version__, # debugger version="1.0.0", run_handle=run, metrics=metrics, config_file_path= os.path.join(BASE_DIR, 'config.yaml'), ) as extractor: extractor.run() The above is original code.
Hi Nimesha,Yeah I have simplified.still it’s stuck in between. May be we need to mock the yaml file properly?os.path.join(BASE_DIR, 'config.yaml'),I am in confuse like I did not mock the above line properly? Can you help me how to mock the yaml file if you feel the same.Even if you feel something else is going wrong also please feel free to point out.Thanks,Sai Harshita
Thank you Nimesha it’s work for me.😀
Hi Nimesha, Thanks a lot for the code. I have tried the above code. I have small doubt. When I generate the coverage report the it’s showing the below line is miss, can you help me how the list will be mock?if not row_list.empty: val = list(row_list[row_list.index.isin([key])]['LastUpdatedDatetime']) Regards,Sai Harshita
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.