~tomasgroth/openlp/portable-path

« back to all changes in this revision

Viewing changes to tests/functional/openlp_plugins/songs/test_worshipcenterproimport.py

  • Committer: Tomas Groth
  • Date: 2019-04-30 19:02:42 UTC
  • mfrom: (2829.2.32 openlp)
  • Revision ID: tomasgroth@yahoo.dk-20190430190242-6zwjk8724tyux70m
trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
###############################################################################
5
5
# OpenLP - Open Source Lyrics Projection                                      #
6
6
# --------------------------------------------------------------------------- #
7
 
# Copyright (c) 2008-2018 OpenLP Developers                                   #
 
7
# Copyright (c) 2008-2019 OpenLP Developers                                   #
8
8
# --------------------------------------------------------------------------- #
9
9
# This program is free software; you can redistribute it and/or modify it     #
10
10
# under the terms of the GNU General Public License as published by the Free  #
23
23
This module contains tests for the WorshipCenter Pro song importer.
24
24
"""
25
25
from unittest import TestCase, skipUnless
26
 
from unittest.mock import patch, MagicMock
 
26
from unittest.mock import MagicMock, patch
 
27
 
27
28
 
28
29
try:
29
30
    import pyodbc
36
37
 
37
38
class DBTestRecord(object):
38
39
    """
39
 
    Microsoft Access Driver is not available on non Microsoft Systems for this reason the :class:`TestRecord` is used
 
40
    Microsoft Access Driver is not available on non Microsoft Systems for this reason the :class:`FakeRecord` is used
40
41
    to simulate a recordset that would be returned by pyobdc.
41
42
    """
42
43
    def __init__(self, id_, field, value):