#!/usr/bin/env python3
# -*- coding: utf-8 -*-
""" Unit tests for the decoder. (Tests only initialization so far) """
# tests: mypy, lint

import unittest

from neuralmonkey.decoders.decoder import Decoder
from neuralmonkey.vocabulary import Vocabulary

class TestDecoder(unittest.TestCase):

    def test_init(self):
        decoder = Decoder([], Vocabulary(), "foo")
        self.assertIsNotNone(decoder)

if __name__ == "__main__":
    unittest.main()

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
""" Unit tests for the decoder. (Tests only initialization so far) """
# tests: mypy, lint

import unittest

from neuralmonkey.decoders.decoder import Decoder
from neuralmonkey.vocabulary import Vocabulary

class TestDecoder(unittest.TestCase):

    def test_init(self):
        decoder = Decoder([], Vocabulary(), "foo", "test-decoder")
        self.assertIsNotNone(decoder)

if __name__ == "__main__":
    unittest.main()

test decoder fix