<reponame>kinoreel/kino-gather
import unittest

from processes.get_omdb import Main as get_omdb
from processes.get_tmdb import Main as get_tmdb
from processes.get_itunes import Main as get_itunes
from processes.get_amazon import Main as get_amazon
from processes.get_trailer import Main as get_trailer
from processes.get_youtube import Main as get_youtube
from processes.insert_errored import Main as insert_errored
from processes.insert_movies import Main as insert_movies
from processes.insert_movies import Main as insert_movies
from processes.insert_movies2companies import Main as insert_movies2companies
from processes.insert_movies2genres import Main as insert_movies2genres
from processes.insert_movies2keywords import Main as insert_movies2keywords
from processes.insert_movies2numbers import Main as insert_movies2numbers
from processes.insert_movies2persons import Main as insert_movies2persons
from processes.insert_movies2ratings import Main as insert_movies2ratings
from processes.insert_movies2streams import Main as insert_movies2streams
from processes.insert_movies2trailers import Main as insert_movies2trailers


class IntegrationTest(unittest.TestCase):

    def test(self):
        imdb_id = "tt5451118"
        payload = {'imdb_id': imdb_id}
        response = get_omdb().run({'imdb_id': imdb_id})
        payload.update(response)
        response = get_tmdb().run(payload)
        payload.update(response)
        response = get_trailer().run(payload)
        payload.update(response)
        response = get_itunes().run(payload)
        payload.update(response)
        response = get_amazon().run(payload)
        payload.update(response)
        response = get_youtube().run(payload)
        payload.update(response)
        print(payload)
        # insert_movies().run(payload)
        # insert_movies2companies().run(payload)
        # insert_movies2keywords().run(payload)
        # insert_movies2numbers().run(payload)
        # insert_movies2persons().run(payload)
        # insert_movies2ratings().run(payload)
        # insert_movies2genres().run(payload)
        # insert_movies2streams().run(payload)
        # insert_movies2trailers().run(payload)

import unittest

from processes.get_omdb import Main as get_omdb
from processes.get_tmdb import Main as get_tmdb
from processes.get_itunes import Main as get_itunes
from processes.get_amazon import Main as get_amazon
from processes.get_trailer import Main as get_trailer
from processes.get_youtube import Main as get_youtube
from processes.insert_errored import Main as insert_errored
from processes.insert_movies import Main as insert_movies
from processes.insert_movies import Main as insert_movies
from processes.insert_movies2companies import Main as insert_movies2companies
from processes.insert_movies2genres import Main as insert_movies2genres
from processes.insert_movies2keywords import Main as insert_movies2keywords
from processes.insert_movies2numbers import Main as insert_movies2numbers
from processes.insert_movies2persons import Main as insert_movies2persons
from processes.insert_movies2ratings import Main as insert_movies2ratings
from processes.insert_movies2streams import Main as insert_movies2streams
from processes.insert_movies2trailers import Main as insert_movies2trailers


class IntegrationTest(unittest.TestCase):

    def test(self):
        imdb_id = "tt5451118"
        payload = {'imdb_id': imdb_id}
        response = get_omdb().run({'imdb_id': imdb_id})
        payload.update(response)
        response = get_tmdb().run(payload)
        payload.update(response)
        response = get_trailer().run(payload)
        payload.update(response)
        response = get_itunes().run(payload)
        payload.update(response)
        response = get_amazon().run(payload)
        payload.update(response)
        response = get_youtube().run(payload)
        payload.update(response)
        print(payload)
        # insert_movies().run(payload)
        # insert_movies2companies().run(payload)
        # insert_movies2keywords().run(payload)
        # insert_movies2numbers().run(payload)
        # insert_movies2persons().run(payload)
        # insert_movies2ratings().run(payload)
        # insert_movies2genres().run(payload)
        # insert_movies2streams().run(payload)
        # insert_movies2trailers().run(payload)
# insert_movies().run(payload) # insert_movies2companies().run(payload) # insert_movies2keywords().run(payload) # insert_movies2numbers().run(payload) # insert_movies2persons().run(payload) # insert_movies2ratings().run(payload) # insert_movies2genres().run(payload) # insert_movies2streams().run(payload) # insert_movies2trailers().run(payload)