Application Method "SMWCindyKate::Wikitext.get_value_for_FIELD_NAME_in_TEMPLATE_NAME"

From SMW CindyKate by dataspects
Component1769502718
Jump to navigation Jump to search
[edit]
Keywords/Contexts

Smw-cindykate

Annotations
{{#compound_query:Component1769502718Property "-Has subobject" has a restricted application area and cannot be used as annotation property by a user.UseCaseMotivation;?HasDirection;?IsMotivating;?IsMotivatedBy;?HasReasoning
Property "-Has subobject" has a restricted application area and cannot be used as annotation property by a user.Application Method "SMWCindyKate::Wikitext.get_value_for_FIELD_NAME_in_TEMPLATE_NAME";?HasDirection;?IsMotivating;?IsMotivatedBy;?HasReasoning Property "-Has subobject" has a restricted application area and cannot be used as annotation property by a user.Application Method "SMWCindyKate::Wikitext.get_value_for_FIELD_NAME_in_TEMPLATE_NAME";?HasDirection;?IsMotivating;?IsMotivatedBy;?HasReasoning
name=MotivationsDeclaredOnThisPageResultItem|link=none}}
Motivations
Lua error in Module:Motivations at line 23: attempt to concatenate field 'hasReasoning' (a nil value).
[edit]

Content


Unit tests covering this application method

MISSING STATUS Scenario "Flag :require_single_template_instance for wikitext NOT fulfilling this condition"

  • testing method call get_value_for_FIELD_NAME_in_TEMPLATE_NAME('Field0', 'Template0', :require_single_template_instance) Returns a Value
RVHasWikitextFromTestPageRVExpectsValueRVExpectsException
TestPage4SMWCindyKate::MultipleInstancesForSameTemplate

MISSING STATUS Scenario "Flag :require_single_template_instance for wikitext fulfilling this condition"

  • testing method call get_value_for_FIELD_NAME_in_TEMPLATE_NAME('Field0', 'Template0', :require_single_template_instance) Returns a Value
RVHasWikitextFromTestPageRVExpectsValueRVExpectsException
TestPage0Value0

TestsAreRunBy {{{2}}}

IsMethodType DataGettingMethod

describe ".get_value_for_FIELD_NAME_in_TEMPLATE_NAME", :'alltests' => true do
      it "" do
        tp0 = $pool_test_pages.clone
        tp0.from_ASK_QUERIES('[[TestPage4]]')
        expect(
          tp0.pages.values[0].get_value_for_FIELD_NAME_in_TEMPLATE_NAME(
            :single_template_instance, # :all_instances, alternative ways for instances selection?
            'TestTemplateField0',
            'TestTemplate0'
          )
        ).to eq 'lorem ipsum'
      end
    end