Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
from unittest import TestCase | ||
|
||
from hamcrest import assert_that, is_ | ||
from src.lib.libyaml import LibYaml | ||
from os.path import expanduser | ||
from pyexcel_ods import save_data, get_data | ||
from collections import OrderedDict | ||
from src.lib.bbdd import Bbdd | ||
from src.lib.ods import Ods | ||
|
||
|
||
class TestOds(TestCase): | ||
db = Ods("/tmp/tmp.ods") | ||
|
||
def test_export(self): | ||
dataOds = [["Fecha", "Deporte", "Competicion", "Región", "Local", "Visitante", "Pick", "Casa", "Mercado", | ||
"Tipster", "Stake", "Unidad", "Resultado", "Beneficio", "Apuesta", "Cuota", "Gratuita"] | ||
["1", "2", "3", "4", "5", "6", "7", "8","9", "10", "11", "12", "13", "14", "15", "16", "17"] | ||
] | ||
|
||
assert_that(config, self.lib.load()) | ||
|
||
def tearDown(self): | ||
import os | ||
os.remove('/tmp/tmp.ods') | ||
|
||
|
||
|
||
|
||
|
||
|
||
# from unittest import TestCase | ||
# | ||
# from hamcrest import assert_that, is_ | ||
# from src.lib.libyaml import LibYaml | ||
# from os.path import expanduser | ||
# from pyexcel_ods import save_data, get_data | ||
# from collections import OrderedDict | ||
# from src.lib.bbdd import Bbdd | ||
# from src.lib.ods import Ods | ||
# | ||
# | ||
# class TestOds(TestCase): | ||
# db = Ods("/tmp/tmp.ods") | ||
# | ||
# def test_export(self): | ||
# dataOds = [["Fecha", "Deporte", "Competicion", "Región", "Local", "Visitante", "Pick", "Casa", "Mercado", | ||
# "Tipster", "Stake", "Unidad", "Resultado", "Beneficio", "Apuesta", "Cuota", "Gratuita"] | ||
# ["1", "2", "3", "4", "5", "6", "7", "8","9", "10", "11", "12", "13", "14", "15", "16", "17"] | ||
# ] | ||
# | ||
# assert_that(config, self.lib.load()) | ||
# | ||
# def tearDown(self): | ||
# import os | ||
# os.remove('/tmp/tmp.ods') | ||
# | ||
# | ||
# | ||
# | ||
# | ||
# |