diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2021-02-08 23:32:27 +0000 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2021-02-08 23:32:27 +0000 |
commit | 4404097e05dc71b7ee78ef49c8ba4d0eaf234f85 (patch) | |
tree | 87722f61b6d725c0c4182c263419bba3704d4344 /test/test_share_fallback.py | |
parent | 958bc90caafeaa4cd6b4d6894d0a67284ba13900 (diff) | |
download | unit-4404097e05dc71b7ee78ef49c8ba4d0eaf234f85.tar.gz unit-4404097e05dc71b7ee78ef49c8ba4d0eaf234f85.tar.bz2 |
Tests: added "--restart" option.
Now Unit do not restart after each test by default.
Diffstat (limited to '')
-rw-r--r-- | test/test_share_fallback.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/test_share_fallback.py b/test/test_share_fallback.py index a02cb1a3..46464670 100644 --- a/test/test_share_fallback.py +++ b/test/test_share_fallback.py @@ -1,5 +1,6 @@ import os +import pytest from unit.applications.proto import TestApplicationProto from unit.option import option @@ -27,7 +28,10 @@ class TestStatic(TestApplicationProto): ) def teardown_method(self): - os.chmod(option.temp_dir + '/assets/403', 0o777) + try: + os.chmod(option.temp_dir + '/assets/403', 0o777) + except FileNotFoundError: + pass def action_update(self, conf): assert 'success' in self.conf(conf, 'routes/0/action') @@ -116,6 +120,7 @@ class TestStatic(TestApplicationProto): assert resp['status'] == 200, 'fallback proxy status' assert resp['body'] == '', 'fallback proxy' + @pytest.mark.skip('not yet') def test_fallback_proxy_loop(self, skip_alert): skip_alert( r'open.*/blah/index.html.*failed', |