Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

conftest.py 365 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  1. import pytest
  2. import yaml
  3. import os
  4. import json
  5. @pytest.fixture
  6. def config(config_path="params.yaml"):
  7. with open(config_path) as yaml_file:
  8. config = yaml.safe_load(yaml_file)
  9. return config
  10. @pytest.fixture
  11. def schema_in(schema_path="schema_in.json"):
  12. with open(schema_path) as json_file:
  13. schema = json.load(json_file)
  14. return schema
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...