Ghini / ghini.desktop

plant collections manager (desktop version)
http://ghini.github.io/
GNU General Public License v2.0
24 stars 14 forks source link

correct recently broken tests #427

Closed mfrasca closed 6 years ago

mfrasca commented 6 years ago

I've not yet been able to set up travis-ci on the 3.1 line, so I've been a bit sloppy with writing unit tests, and I've even broken a few. please restore them, thanks.

the following is not a single traceback, it's the starting lines of several tracebacks.

  File "…/bauble/test/test_prefs.py", line 46, in test_assert_initial_values
    p.init()
  File "…/bauble/test/test_prefs.py", line 114, in test_boolean_values_stay_boolean
    p.init()
  File "…/bauble/test/test_prefs.py", line 71, in test_can_force_save
    p.init()
  File "…/bauble/test/test_prefs.py", line 39, in test_create_does_not_save
    p.init()
  File "…/bauble/test/test_prefs.py", line 79, in test_get_does_not_store_values
    p.init()
  File "…/bauble/test/test_prefs.py", line 102, in test_most_values_converted_to_string
    p.init()
  File "…/bauble/test/test_prefs.py", line 63, in test_not_saved_while_testing
    p.init()
  File "…/bauble/test/test_prefs.py", line 124, in test_saved_dictionary_like_ini_file
    p.init()
  File "…/bauble/test/test_prefs.py", line 92, in test_use___setitem___to_store_value_and_create_section
    p.init()

which all end here:

  File "…/bauble/prefs.py", line 167, in init
    if format.find('%d') < format.find('%m'):
AttributeError: 'NoneType' object has no attribute 'find'