We're slowly moving away from Nevow, and marcusw's previous patch removed
uses of the formless CSS file, so now we can stop testing that nevow can find
that file, and remove the lingering unused "import formless" call.
+++ /dev/null
-from twisted.trial import unittest
-
-from formless import webform
-
-class Web(unittest.TestCase):
- def test_read_default_css(self):
- """
- Sometimes Nevow can't find its resource files such as its default css file.
- """
-
- from allmydata import get_package_versions, normalized_version
- nevow_ver = get_package_versions()['Nevow']
-
- if not normalized_version(nevow_ver) >= normalized_version('0.9.33'):
- raise unittest.SkipTest("We pass this test only with Nevow >= v0.9.33, which is the first version of Nevow that has our patch from http://www.divmod.org/trac/ticket/2527")
-
- webform.defaultCSS.openForReading()
from nevow.inevow import IRequest
from nevow.static import File as nevow_File # TODO: merge with static.File?
from nevow.util import resource_filename
-from formless import webform
import allmydata # to display import path
from allmydata import get_package_versions_string
<html xmlns:n="http://nevow.com/ns/nevow/0.1">
<head>
<title>AllMyData - Tahoe</title>
- <link href="/webform_css" rel="stylesheet" type="text/css"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>