Override OpsProof anonymous welcome test
This commit is contained in:
parent
fa23118696
commit
a6ef6d19f4
|
|
@ -0,0 +1,12 @@
|
|||
package feature_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"app/tests"
|
||||
)
|
||||
|
||||
func TestTheWelcomePageRenders(t *testing.T) {
|
||||
client := tests.New(t)
|
||||
client.Get("/").AssertOK().AssertInertia("Demo").AssertProp("demo.outcome", "validated")
|
||||
}
|
||||
|
|
@ -213,6 +213,12 @@ class OpsProofPipelineTests(unittest.TestCase):
|
|||
self.assertIn("models.CurrentUser(request) == nil", welcome)
|
||||
self.assertIn('web.Redirect("/demo")', welcome)
|
||||
|
||||
welcome_test = (
|
||||
ROOT / "apps/opsproof/overlay/tests/feature/welcome_test.go"
|
||||
).read_text(encoding="utf-8")
|
||||
self.assertIn("TestTheWelcomePageRenders", welcome_test)
|
||||
self.assertIn('AssertInertia("Demo")', welcome_test)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
|
|
|||
Loading…
Reference in New Issue