21 Commits

Author SHA1 Message Date
Davis Schirmer
7a90a30ba5 [typing] Annotate tests 2022-02-21 18:39:26 -05:00
Davis Schirmer
bd3e6f5f67 [test] Convert unittests runner nose => pytest
Per the official docs, nose is in maintenance mode. Attempts to import
`Callable` from `collections` fails in Python 3.10. Convert
nose-specific assert statements to bare asserts supported by pytest.

* https://nose.readthedocs.io/en/latest/#note-to-users
* https://github.com/pytest-dev/nose2pytest
2021-11-05 01:13:56 -04:00
Davis Schirmer
07b29ee2b5 [test] Fix imports in tests/config_test.py 2021-11-05 01:13:52 -04:00
Marcin Kulik
bc793d541c Custom notification command + disabling notifications 2019-09-08 11:30:46 +02:00
Marcin Kulik
7b9c8298b4 Fix pycodestyle (pep8) errors 2018-12-08 19:02:13 +01:00
Marcin Kulik
331dcf497f Keep UUID out of config file and call it "install ID"
We referred to this locally generated UUID as "API token" which was wrong,
because it doesn't have any special API powers, and is only used to link local
machine with uploaded recordings, so they can later be associated with
asciinema.org account.

It's more of device token or installation ID in nature, so let's call it
"install ID" for short, and keep it at ~/.config/asciinema/install-id.

Keeping it in automatically created config file also turned out to be not the
best idea - the config was mixing user preferences with local, device specific
state, preventing easy publishing of the config (for example in a public
dotfiles repository).
2017-12-04 00:25:50 +01:00
Marcin Kulik
ac58f27a2e Rename max-wait to idle-time-limit 2017-10-26 13:21:38 +02:00
Marcin Kulik
136de0c5a7 Opt-in stdin recording 2017-09-22 22:21:35 +02:00
Marcin Kulik
5f2849a7a0 White-listing of captured environment variables 2017-09-22 09:40:34 +02:00
Jakub Jedelsky
46696846e1 Make code to respect PEP8 coding style
Ignoring 'E501 line too long' error for now, it needs more work.
2016-10-14 00:52:09 +02:00
Marcin Kulik
7ea10486a2 Improve config loading test 2016-07-11 19:54:34 +02:00
Marcin Kulik
286377d0c4 Don't explicitly inherit object 2016-06-30 16:36:48 +02:00
Marcin Kulik
4605040676 Revert "Remove old, python based implementation"
This reverts commit c76efecbe1.
2016-06-07 21:02:11 +02:00
Marcin Kulik
c76efecbe1 Remove old, python based implementation 2014-11-13 20:45:05 +01:00
Marcin Kulik
c149c5ef93 HTTPS everywhere 2014-02-09 14:05:55 +01:00
Marcin Kulik
8e80920226 Support user.token as a fallback for api.token 2013-10-08 17:09:29 +02:00
Marcin Kulik
fa838b57d7 Rename user_token to api_token 2013-10-08 17:00:53 +02:00
Marcin Kulik
f6e9a056b6 Proper python package layout 2013-10-06 13:49:24 +02:00
Marcin Kulik
d5804ab353 Delay config file creation until user_token is requested 2013-09-30 22:39:39 +02:00
Marcin Kulik
48c108a7b1 Update project naming one more time 2013-09-24 22:56:39 +02:00
Marcin Kulik
09909137cc Run tests with guard
Conflicts:
	bin/asciiio
2013-09-24 22:13:23 +02:00