jyotisham / jyotisha

Python tools for the astronomical / astrological vedAnga of Hindus
MIT License
88 stars 52 forks source link

test_describe_test failing #120

Closed karthikraman closed 2 years ago

karthikraman commented 2 years ago

test_describe_fest seems to be failing. Unsure what could be the error. Please look into it @vvasuki - thanks!

=================================== FAILURES ===================================
______________________________ test_describe_fest ______________________________

    def test_describe_fest():
      rule_set = RulesCollection(repos=[RulesRepo(name="test_repo", path=os.path.join(os.path.dirname(__file__), 'data/test_repo'))], julian_handling=None)

      # rule_set = rules.RulesCollection.get_cached(repos_tuple=rules.rule_repos)
      expected_md_file = os.path.join(os.path.dirname(__file__), 'data/taittirIya-utsargaH_paurNamAsyAm.md')
      with codecs.open(expected_md_file, "r", "utf-8") as f:
        summary_md = summary.describe_fest(rule=rule_set.name_to_rule["taittirIya-utsargaH_paurNamAsyAm"], include_images=False, include_shlokas=False, include_url=False, is_brief=False, script=sanscript.DEVANAGARI, truncate=False, header_md="#####")
        expected_md = f.read()
        if summary_md != expected_md:
          with codecs.open(expected_md_file + ".local", "w", "utf-8") as g:
            g.write(summary_md)
>       assert summary_md == f.read()
E       AssertionError: assert 'Observed on ...Festivals\n\n' == ''
E         + Observed on Paurṇamāsī tithi of Pauṣaḥ (lunar) month (Sūryōdayaḥ/puurvaviddha). 
E         + 
E         + ##### आपस्तम्बसूत्रेषु
E         + तैषीपक्षस्य रोहिण्यां पौर्णमास्यां वोत्सर्गः ८  
E         + अभिप्यन्ते +++(=प्रार्थयन्ते [स्नानादिकं सहैव कर्तुं])+++ वान्योन्यम् १६
E         + 
E         + … एवं पारायण+++(=यथारुच्यध्ययनमिति केचित्)+++समाप्तौ च - काण्डादि दूर्वारोपणोदधि-धावनवर्जम् २४
E         + 
E         + ##### Details
E         + - [Edit config file](https://github.com/jyotisham/adyatithi/blob/master/test_repo/lunar_month/tithi/10/15/taittirIya-utsargaH_paurNamAsyAm.toml)
E         + - Tags: CommonFestivals
E         +