Skip to content

Commit

Permalink
remove outdated data loaders
Browse files Browse the repository at this point in the history
  • Loading branch information
semio committed Aug 1, 2019
1 parent a4337d4 commit 9f77c70
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 180 deletions.
4 changes: 1 addition & 3 deletions ddf_utils/factory/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# -*- coding: utf-8 -*-

from . cdiac import CDIACLoader
from . clio_infra import ClioInfraLoader
from . igme import IGMELoader
from . ihme import IHMELoader
from . ilo import ILOLoader
from . oecd import OECDLoader
from . worldbank import WorldBankLoader
from . worldbank import WorldBankLoader
80 changes: 0 additions & 80 deletions ddf_utils/factory/cdiac.py

This file was deleted.

85 changes: 0 additions & 85 deletions ddf_utils/factory/igme.py

This file was deleted.

10 changes: 2 additions & 8 deletions tests/test_factory.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-

from ddf_utils.factory import (CDIACLoader, ClioInfraLoader, IGMELoader,
IHMELoader, ILOLoader, OECDLoader, WorldBankLoader)
from ddf_utils.factory import (ClioInfraLoader, IHMELoader, ILOLoader, OECDLoader, WorldBankLoader)
import tempfile


Expand All @@ -25,12 +24,7 @@ def test_ilo():
ilo.has_newer_source('GDP_211P_NOC_NB_A', '2012-10-01')


def test_cdiac():
cdiac = CDIACLoader()
cdiac.has_newer_source('2012-10-01')


def test_other_factory():
for loader in [IGMELoader, OECDLoader, ClioInfraLoader]:
for loader in [OECDLoader, ClioInfraLoader]:
ld = loader()
ld.load_metadata()
8 changes: 4 additions & 4 deletions tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@

def test_download_csv():
urls = [
'http://cdiac.ornl.gov/ftp/ndp030/CSV-FILES/nation.1751_2014.csv',
'http://cdiac.ornl.gov/ftp/ndp030/CSV-FILES/nation.1751_2013.csv'
'http://ipv4.download.thinkbroadband.com/5MB.zip',
'http://ipv4.download.thinkbroadband.com/10MB.zip'
]
temp_dir = mkdtemp()

download_csv(urls, temp_dir)

flist = [
'nation.1751_2014.csv',
'nation.1751_2013.csv'
'5MB.zip',
'10MB.zip'
]

for f in flist:
Expand Down

0 comments on commit 9f77c70

Please sign in to comment.