Skip to content

Commit

Permalink
fix manul tests (with venv too)
Browse files Browse the repository at this point in the history
  • Loading branch information
manatlan committed Dec 12, 2023
1 parent 1c00b51 commit 451f049
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manual_tests_base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import sys
#!./venv/bin/python3
from htag import Tag # the only thing you'll need ;-)


Expand Down
2 changes: 1 addition & 1 deletion manual_tests_events.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import sys
#!./venv/bin/python3
from htag import Tag # the only thing you'll need ;-)

def nimp(obj):
Expand Down
1 change: 1 addition & 0 deletions manual_tests_htbulma.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!./venv/bin/python3
from htag import Tag
import htbulma as b

Expand Down
2 changes: 1 addition & 1 deletion manual_tests_new_InternalCall.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import sys
#!./venv/bin/python3
from htag import Tag # the only thing you'll need ;-)


Expand Down
11 changes: 10 additions & 1 deletion manual_tests_persitent.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
import sys
#!./venv/bin/python3
from htag import Tag # the only thing you'll need ;-)

class Nimp(Tag.div):
def init(self):
# !!! previous3 will not be saved in '/tmp/AEFFFF.json' !!!
# (it's not the main/managed tag (which is Page), so it's an inner dict)
self.state["previous3"]=self.state.get("previous3","") + "!"
self.set( self.state["previous3"] )


class Page(Tag.body):
def init(self):
self.session["previous"]=self.session.get("previous","") + "!"
self.state["previous2"]=self.state.get("previous2","") + "!"

self+=Tag.div( self.session["previous"] )
self+=Tag.div( self.state["previous2"] )
self+=Nimp()


# from htag.runners import DevApp as Runner
Expand Down
1 change: 1 addition & 0 deletions manual_tests_qp.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!./venv/bin/python3
# -*- coding: utf-8 -*-

from htag import Tag
Expand Down
3 changes: 2 additions & 1 deletion manual_tests_remove.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import sys
#!./venv/bin/python3
# -*- coding: utf-8 -*-
from htag import Tag # the only thing you'll need ;-)


Expand Down

0 comments on commit 451f049

Please sign in to comment.