Commits

Pierre-Marie de Rodat committed 39938d6

Tests: replaced constants by shell arguments.

  • Participants
  • Parent commits 65442b6

Comments (0)

Files changed (1)

 # -*- coding: utf-8 -*-
 
+import sys
+
 from connection import Connection
 
 
 
-conn = Connection('mclib_test')
-conn.connect(('localhost', 25565))
+username, host, port = sys.argv[1:4]
+conn = Connection(username)
+conn.connect((host, int(port)))
 conn.close()