PyWebDAV3 icon indicating copy to clipboard operation
PyWebDAV3 copied to clipboard

The litmus test for PROPPATCH fails with '423 Locked'

Open xypron opened this issue 1 year ago • 0 comments

With release 0.10.0 the litmus test for PROPPATCH fails with '423 Locked'. Cf. https://salsa.debian.org/xypron/pywebdav/-/jobs/4196190

_________________________ Test.test_run_litmus_noauth __________________________

self = <test_litmus.Test testMethod=test_run_litmus_noauth>

    def test_run_litmus_noauth(self):
    
        result = []
        proc = None
        try:
            print('Starting davserver')
            davserver_cmd = [sys.executable, os.path.join(testdir, '..', 'pywebdav', 'server', 'server.py'), '-D',
                             self.rundir, '-n', '-H', 'localhost', '--port', str(port)]
            self.davserver_proc = subprocess.Popen(davserver_cmd)
            # Ensure davserver has time to startup
            time.sleep(1)
    
            # Run Litmus
            print('Running litmus')
            try:
                ret = run(["make", "URL=http://localhost:%d" % port, "check"], cwd=self.litmus_dist, capture_output=True)
                results = ret.stdout
    
            except subprocess.CalledProcessError as ex:
                results = ex.output
            lines = results.decode().split('\n')
            assert len(lines), "No litmus output"
            for line in lines:
                line = line.split('\r')[-1]
                result.append(line)
                if len(re.findall('^ *\d+\.', line)):
>                   assert line.endswith('pass'), line
E                   AssertionError:  6. propset............... FAIL (PROPPATCH on `/litmus/prop': 423 Locked)
E                   assert False
E                    +  where False = <built-in method endswith of str object at 0x7f60ae420830>('pass')
E                    +    where <built-in method endswith of str object at 0x7f60ae420830> = " 6. propset............... FAIL (PROPPATCH on `/litmus/prop': 423 Locked)".endswith

test/test_litmus.py:111: AssertionError

xypron avatar May 08 '23 04:05 xypron