• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisiónfe53471457f20c77dc0cff8ab0e8376375aa054a (tree)
Tiempo2018-11-12 01:16:33
AutorAlbert Mietus < albert AT mietus DOT nl >
CommiterAlbert Mietus < albert AT mietus DOT nl >

Log Message

small textual refactoring

Cambiar Resumen

Diferencia incremental

diff -r 1f2f5f5b59f6 -r fe53471457f2 pathways/__main__.py
--- a/pathways/__main__.py Sun Nov 04 15:40:54 2018 +0100
+++ b/pathways/__main__.py Sun Nov 11 17:16:33 2018 +0100
@@ -45,7 +45,7 @@
4545 ATS = pm.load(os.path.splitext(os.path.basename(ATSfile))[0], extend_path=True)
4646
4747 # Run the ATSes in the file
48- for ats in discover(ATS.__dict__):
48+ for ats in discover(ATS.__dict__): # GAM XXX: Why is this loop here? Should it be in "ATS" (representing the file) ...?
4949 test_count+=1
5050 run_ATS(ats, probe=probe)
5151
diff -r 1f2f5f5b59f6 -r fe53471457f2 pathways/core/config.py
--- a/pathways/core/config.py Sun Nov 04 15:40:54 2018 +0100
+++ b/pathways/core/config.py Sun Nov 11 17:16:33 2018 +0100
@@ -33,6 +33,7 @@
3333
3434
3535 class Config:
36+ """ .. todo:: Doc Config"""
3637
3738 def __init__(self, cfgdir=None, cwd=None, argparse=False):
3839 """Create a Config object;
diff -r 1f2f5f5b59f6 -r fe53471457f2 pathways/puts/webput.py
--- a/pathways/puts/webput.py Sun Nov 04 15:40:54 2018 +0100
+++ b/pathways/puts/webput.py Sun Nov 11 17:16:33 2018 +0100
@@ -93,9 +93,10 @@
9393 from selenium import webdriver
9494 from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
9595
96- HACK = r"~/work/Pathways/TMP/geckodriver" # XXX
97- logger.debug("XXX HACK=%s", HACK) # XXX
96+ # Use 'BIN_PATH' Cfg value - After fixing :ref:`bug-cgfput` # XXX
97+ HACK = r"~/work/Pathways/TMP/" + 'geckodriver' # XXX
9898 ff_driver = os.path.expanduser(os.path.expandvars(HACK)) # XXX
99+ logger.debug("HACK: ff_driver=%s", ff_driver ) # XXX
99100
100101 caps = DesiredCapabilities.FIREFOX
101102 caps["marionette"] = True
diff -r 1f2f5f5b59f6 -r fe53471457f2 pathways/runners/probes.py
--- a/pathways/runners/probes.py Sun Nov 04 15:40:54 2018 +0100
+++ b/pathways/runners/probes.py Sun Nov 11 17:16:33 2018 +0100
@@ -16,8 +16,7 @@
1616
1717 probeTracer
1818 Accessable via ``probe.trace.FUNC`` and should be used to *track & trace* the ATS (testing progress)
19- within the pathways-framework. Both in this file and others.
20- moduleLogger
19+ within the pathways-framework. Both in this file and other moduleLogger
2120 As in most modules, it is possible to *"debug"* this module too; via the ``logger.FUNC`` interface.
2221 """
2322
diff -r 1f2f5f5b59f6 -r fe53471457f2 pathways/runners/run.py
--- a/pathways/runners/run.py Sun Nov 04 15:40:54 2018 +0100
+++ b/pathways/runners/run.py Sun Nov 11 17:16:33 2018 +0100
@@ -64,12 +64,16 @@
6464
6565 def discover(d):
6666 """Find all ATSes in a module-or-frame dict, and return a list, sorted in code-order"""
67+
6768 atses = [ func for (name, func) in d.items() if name.startswith('ATS_') and callable(func) ]
6869 atses.sort(key=lambda f : f.__code__.co_firstlineno) # Sort them to file order!
70+
6971 probes.currentProbe.trace.info("Discovered: %s", ", ".join(ats.__name__ for ats in atses))
72+
7073 return atses
7174
7275
76+
7377 def autorun():
7478 """Automatically run all ATSes in the current ATS-file. Typically used at (the bottom of) each ATS, to run that test-file manually:
7579