card #160: kept .github/time/test_time.py (generated)
This commit is contained in:
1 parent
cf48ec89f9
commit
02a5b19763
1 file changed
+3
-2
@@ -1036,7 +1036,7 @@ html79 = gv.index_html({"ventures": [{**w79, "url": gv.site_of("star-checker"),
|
||||
assert "github.com" not in html79 and 'href="https://star-checker.yolopreneur.lol/"' in html79 and "https://forge.test/o/r/issues/7" in html79
|
||||
# a renamed venture (its registry entry has `home`) lives in its home folder: links, checks and the portfolio follow it;
|
||||
# its slug stays the key. One without a home is unchanged (above)
|
||||
wh79 = {"slug": "box-art-night", "name": "Cartridge", "signal": 7}
|
||||
wh79 = {"slug": "box-art-night", "name": "Cartridge", "signal": 7, "url": "u", "join": "j"}
|
||||
assert gv.home_of(wh79) == "cartridge" and gv.home_of({**wh79, "home": "x"}) == "x" and gv.home_of(w79) == "star-checker"
|
||||
assert gv.blob_url(wh79, "LAUNCH.md").endswith("/ventures/cartridge/LAUNCH.md")
|
||||
assert "ventures/cartridge/" in gv.build_body({**wh79, "url": "u", "join": "j"}, {"pricing": [{"tier": "Free", "price": "0", "for": "f", "includes": "i"}],
|
||||
@@ -1055,8 +1055,9 @@ gv.next_version(wh79, ["a"], 3); gv.next_version(w79, ["a"], 3)
|
||||
assert cards79[0]["winner"]["home"] == "cartridge" and cards79[0]["winner"]["prior"] == "ventures/cartridge/index.html", cards79[0]
|
||||
assert "home" not in cards79[1]["winner"] and cards79[1]["winner"]["prior"] == "ventures/star-checker/index.html", cards79[1]
|
||||
gv._build_on_pages = lambda card, done, spec, root="": rb79.append((done, root)) or {"seat": "s", "steps": 1, "model": "m"}
|
||||
plan79 = {"pricing": [{"tier": "Free", "price": "0", "for": "f", "includes": "i"}], "positioning": "p", "primary_cta": "c"}
|
||||
for w_, home_ in ((wh79, "cartridge"), (w79, "star-checker")):
|
||||
gv.advance({"number": 9}, [], [{"beat": "planned", "winner": w_, "plan": {"pricing": []}}], True)
|
||||
gv.advance({"number": 9}, [], [{"beat": "planned", "winner": w_, "plan": plan79}], True)
|
||||
assert rb79[-1][1] == f"ventures/{home_}/" and rb79[-1][0].startswith(f"ventures/{home_}/index.html"), rb79
|
||||
gv.new_card, gv.tm.comment, gv._build_on_pages = real_nc79, real_cm79, real_bp79
|
||||
gv.pages_file = real_pf79
|
||||
|
||||
Reference in new issue
Block a user