cclauss
3953765b83
--max-complexity=10
2017-07-04 10:47:10 +02:00
cclauss
ba34d9148e
Undo .travis.yml changes
2017-07-04 10:35:01 +02:00
cclauss
cff8616444
Update .travis.yml
2017-07-04 10:32:45 +02:00
cclauss
50880c93b1
More tests in test_main.py
...
Only merge **after** PR #82 . This PR leverages the new test_util.py (in PR #82 ) for common test data and functions.
The only test that should fail is `test_extra()` which is caused by issue #89
2017-07-04 10:28:43 +02:00
cclauss
fbae1079a2
len(db.get_all()) == MAX_ID + len(db.get_extra())
2017-07-04 08:11:46 +02:00
cclauss
2ac10b67ce
Revert adding test_main.py
2017-07-04 08:05:04 +02:00
cclauss
2e9c5964d5
test_main uses test_utils plus more tests
2017-07-04 08:01:39 +02:00
cclauss
70ed2d0fb4
for id_str in numbered_ids
2017-07-04 07:45:47 +02:00
cclauss
8bc3f324b1
id_str
2017-07-04 07:42:48 +02:00
cclauss
434c6c2fc3
Update test_database.py
2017-07-04 07:41:34 +02:00
cclauss
d5b6f8fd26
Remove redundant builds
2017-07-04 07:39:20 +02:00
cclauss
aa16c65400
Database().get_all() --> numbered_ids
2017-07-04 07:38:20 +02:00
cclauss
d79dec81dd
int --> id
2017-07-04 07:35:17 +02:00
cclauss
4de38c717d
Update test_database.py
2017-07-04 07:30:43 +02:00
cclauss
41a5240c53
is_instance --> isinstance
2017-07-04 07:12:09 +02:00
cclauss
df5fe70a35
Fix TravisCI
2017-07-04 07:06:31 +02:00
cclauss
7aa9c1e040
Silence the email notifications on_failure
2017-07-04 07:03:39 +02:00
cclauss
0c5626b188
Placate flake8: removed whitespace
2017-07-04 07:02:15 +02:00
cclauss
ab46a50446
Remove that pesky comma
2017-07-04 06:57:51 +02:00
cclauss
1899c67b17
test_ids() and test_thresholds()
2017-07-04 06:51:48 +02:00
Samuel Henrique
250e8708b7
Merge branch 'master' of https://github.com/LazoCoder/Pokemon-Terminal
2017-07-03 22:42:58 -03:00
Samuel Henrique
8496ede2bb
Fixes issues caused by #84
2017-07-03 22:35:46 -03:00
LazoCoder
ca89626afa
Fixed light/dark bug
...
Traceback (most recent call last):
File "./pokemon", line 298, in <module>
main(sys.argv)
File "./pokemon", line 288, in main
single_argument_handler(argv[1].lower(), ESCAPE_CODE)
File "./pokemon", line 240, in single_argument_handler
change_terminal_background(db, db.get_light().get_name())
AttributeError: 'str' object has no attribute 'get_name'
2017-07-03 21:01:12 -04:00
LazoCoder
ba9e9b3d8f
Fixed "AttributeError: 'ITerm' object has no attribute 'set_pokemon'"
...
Traceback (most recent call last):
File "./pokemon", line 298, in <module>
main(sys.argv)
File "./pokemon", line 288, in main
single_argument_handler(argv[1].lower(), ESCAPE_CODE)
File "./pokemon", line 270, in single_argument_handler
change_terminal_background(db, arg)
File "./pokemon", line 123, in change_terminal_background
scripter.change_terminal(pokemon.get_path())
File "/Users/Laki/Documents/GitHub/Pokemon-Terminal/scripter.py", line 41, in change_terminal
adapter.set_pokemon(image_file_path)
AttributeError: 'ITerm' object has no attribute 'set_pokemon'
2017-07-03 20:57:08 -04:00
Lazo
eee1106466
Merge pull request #84 from cclauss/patch-2
...
Scripter accepts an image_file_path, not a pokemon
2017-07-03 20:49:38 -04:00
Lazo
5451c04a76
Merge pull request #85 from cclauss/patch-6
...
Missing variable assignment
2017-07-03 19:55:47 -04:00
Lazo
b5992d74bb
Merge pull request #86 from samosaara/master
...
get_all and get_[region] fixed.
2017-07-03 19:55:15 -04:00
cclauss
832049e998
Create test_utils.py
2017-07-04 01:50:48 +02:00
cclauss
f9cdee86ff
from test_utils import region_dict
2017-07-04 01:49:14 +02:00
cclauss
09dc66f488
from test_utils import expected_len
2017-07-04 01:47:07 +02:00
cclauss
b58f3776b3
Make get_pokemon(name) case insensitive
2017-07-04 01:35:02 +02:00
cclauss
95394753b2
Removed IndexError check & reverted to len() == 0
2017-07-04 00:59:29 +02:00
Samuel Henrique
498614e78a
🤦♂️
2017-07-03 18:15:19 -03:00
Samuel Henrique
a33a9ba817
One more assertion. Extra pokemon loading improvements
2017-07-03 18:10:11 -03:00
cclauss
b8137aca5a
missing variable assignment
...
Also changes for #77
2017-07-03 19:32:38 +02:00
cclauss
6058e1c433
Remove tuple_store testing
2017-07-03 19:04:25 +02:00
cclauss
0d18e796f7
scripter.change_terminal(pokemon.get_path())
...
Also changes for #77
2017-07-03 18:46:00 +02:00
cclauss
b8974671c4
scripter.change_terminal(pokemon.get_path())
2017-07-03 18:31:50 +02:00
cclauss
2b5e25de51
Tilix.py accepts an image_file_path, not a pokemon
...
See issue #83
2017-07-03 16:48:09 +02:00
cclauss
7e07dd10bf
Terminology.py accepts an image_file_path, not a pokemon
...
See issue #83
2017-07-03 16:44:34 +02:00
cclauss
cb6e02c8f7
Terminology.py accepts an image_file_path, not a pokemon
...
See issue #83
2017-07-03 16:43:46 +02:00
cclauss
e3ad3e1afc
NullAdapter.py accepts an image_file_path, not a pokemon
...
See issue #83
2017-07-03 16:41:35 +02:00
cclauss
b95a0ae9c5
ITerm.py accepts an image_file_path, not a pokemon
...
See issue #83
2017-07-03 16:40:06 +02:00
cclauss
7469dcbbab
base.py accepts an image_file_path, not a pokemon
...
See issue #83
2017-07-03 16:37:03 +02:00
cclauss
7795c1c8d4
Scripter accepts an image_file_path, not a pokemon
...
See issue #83
2017-07-03 16:32:28 +02:00
cclauss
a5f27b71ac
Adds make_extra_counts() utility function
2017-07-03 14:17:18 +02:00
cclauss
9a342b455a
Properly accounts for extra counts in the regions
2017-07-03 14:15:47 +02:00
Samuel Henrique
710428229a
get_all and get_[region] fixed.
2017-07-02 20:46:35 -03:00
cclauss
7fceb101e8
Update test_datbase.py
2017-07-02 22:35:27 +02:00
cclauss
53833fb994
Create test_broken.py
2017-07-02 22:34:21 +02:00