<reponame>ConorSheehan1/org_to_anki<filename>tests/testUtils.py
import sys
import os
sys.path.append('../org_to_anki')

from org_to_anki.utils import createQuickNotesFile


def testCreateFile():
    dir = os.path.dirname(__file__)
    newFilePath = dir + "/" + "orgNotes"
    assert(os.path.exists(newFilePath) == False)
    createQuickNotesFile(newFilePath)
    assert(os.path.exists(newFilePath))
    os.rmdir(newFilePath)
    assert(os.path.exists(newFilePath) == False)

import sys
import os
sys.path.append('../org_to_anki')

from org_to_anki.utils import createQuickNotesFile


def testCreateFile():
    dir = os.path.dirname(__file__)
    newFilePath = dir + "/" + "orgNotes"
    assert(os.path.exists(newFilePath) == False)
    createQuickNotesFile(newFilePath)
    assert(os.path.exists(newFilePath))
    os.rmdir(newFilePath)
    assert(os.path.exists(newFilePath) == False)