Skip to content

Commit 6e38449

Browse files
author
renzon
committed
Consertando testes de atores para rodar via linha de comando
1 parent 5e426f7 commit 6e38449

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

testes/atores_testes.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
# -*- coding: utf-8 -*-
22

33
from __future__ import unicode_literals
4+
from os import path
5+
import sys
6+
7+
project_dir = path.dirname(__file__)
8+
project_dir = path.join('..')
9+
sys.path.append(project_dir)
10+
11+
import unittest
412
from unittest.case import TestCase
513
from atores import Ator, DESTRUIDO, ATIVO, Obstaculo, Porco, PassaroAmarelo, PassaroVermelho
614

@@ -743,3 +751,8 @@ def assert_posicao_vertical(self, y, tempo, passaro):
743751
Atenção, esse não é um teste porque não começa com prefixo "test"
744752
"""
745753
self.assert_passaro_posicao(1, y, ATIVO, passaro, tempo)
754+
755+
756+
if __name__=='__main__':
757+
teste= AtorTestes()
758+
teste.teste_colisao_entre_atores_ativos()

0 commit comments

Comments
 (0)