mirror of
https://github.com/VinciGit00/Scrapegraph-ai.git
synced 2026-06-23 21:00:30 +08:00
19 lines
635 B
Python
19 lines
635 B
Python
"""Module for testing convert_to_json inside the folder scrapegraphai/convert_to_json.py"""
|
|
import unittest
|
|
from scrapegraphai.utils.convert_to_csv import convert_to_csv
|
|
|
|
|
|
class TestConvertToCsvFunction(unittest.TestCase):
|
|
"""
|
|
class for testing convert_to_json inside the folder scrapegraphai/convert_to_json.py
|
|
"""
|
|
|
|
def test_get_json(self):
|
|
"""
|
|
function for testing convert_to_json inside the folder scrapegraphai/convert_to_json.py
|
|
"""
|
|
example = {"trial": [1, 2, 3]}
|
|
filename = "result"
|
|
path = "../Scrapegraph-ai/tests"
|
|
convert_to_csv(example, filename, path)
|